File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
PSModuleDevelopment/functions/utility Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 14
14
15
15
If there is parameter value present, you have to use the opposite quote strategy to encapsulate the string correctly
16
16
17
- E.g. -CommandText 'Import-D365Bacpac -ImportModeTier2 -SqlUser "sqladmin" -SqlPwd "XyzXyz" -BacpacFile2 "C:\temp\uat.bacpac"'
18
- E.g. -CommandText "Emport-D365Bacpac -ExportModeTier2 -SqlUser 'sqladmin' -SqlPwd 'XyzXyz' -BacpacFile2 'C:\temp\uat.bacpac'"
17
+ E.g. for double quotes
18
+ -CommandText 'Import-D365Bacpac -ImportModeTier2 -SqlUser "sqladmin" -SqlPwd "XyzXyz" -BacpacFile2 "C:\temp\uat.bacpac"'
19
+
20
+ E.g. for single quotes
21
+ -CommandText "Import-D365Bacpac -ExportModeTier2 -SqlUser 'sqladmin' -SqlPwd 'XyzXyz' -BacpacFile2 'C:\temp\uat.bacpac'"
19
22
20
23
. PARAMETER Mode
21
24
The operation mode of the cmdlet / function
31
34
PS C:\> Show-PSMDSyntax -CommandText 'Import-D365Bacpac -ImportModeTier2 -SqlUser "sqladmin" -SqlPwd "XyzXyz" -BacpacFile2 "C:\temp\uat.bacpac"' -Mode "Validate"
32
35
33
36
This will validate all the parameters that have been passed to the Import-D365Bacpac cmdlet.
37
+ All supplied parameters that matches a parameter will be marked with an asterisk.
34
38
35
39
. EXAMPLE
36
40
PS C:\> Show-PSMDSyntax -CommandText 'Import-D365Bacpac' -Mode "ShowParameters"
37
41
38
- This will validate all the parameters that have been passed to the Import-D365Bacpac cmdlet .
42
+ This will display all the parameter sets and their individual parameters .
39
43
40
44
. NOTES
41
45
Author: Mötz Jensen (@Splaxi)
46
+
42
47
#>
43
48
[CmdletBinding ()]
44
49
You can’t perform that action at this time.
0 commit comments