PSEnsure
- 14 May 2021
- 1 Minute to read
-
Print
-
DarkLight
-
PDF
PSEnsure
- Updated on 14 May 2021
- 1 Minute to read
-
Print
-
DarkLight
-
PDF
This is generated from the built in components of BuildMaster 7.0.0, and may be different than what you have installed (especially if you have extensions); go to [User Icon] -> Documentation within your BuildMaster instance to see exactly what operations are available.
PSEnsure
Calls a PowerShell Ensure Script that is stored as an asset.
Script usage:
PSEnsure [DefaultArgument] ( [Arg1: Arg1Value], [Arg2: Arg2Value], [OutputArgument => $CustomVariable] );
This operation may be prefixed with PowerShell::
, although this is a built-in namespace and isn't really necessary.
Example:
# execute the hdars.ps1 ensure script, passing Argument1 and Aaaaaarg2 as variables, and capturing the value of OutputArg as $MyVariable PSEnsure hdars ( Argument1: hello, Aaaaaarg2: World, OutputArg => $MyVariable );
Was this article helpful?