Get-SCScriptCommandSetting

Gets the settings for a script command.

Description

The Get-SCScriptCommandSetting cmdlet gets the settings that have been configured on a script command.

For more information about Get-SCScriptCommandSetting, type "Get-Help Get-SCScriptCommandSetting -online".

Parameters

ScriptCommand

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a script command object.

Examples

1: Get the script command settings for a specific script command.
PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $ScriptCommand = Get-SCScriptCommand -ApplicationProfile $AppProfile | Where {$_.Name -eq "PostInstall"}
PS C:\> Get-SCScriptCommandSetting -ScriptCommand $ScriptCommand
The first command gets the application profile object named SvcWebAppProfile01 and stores the object in the $AppProfile variable.

The second command gets the script command object named PostInstall and stores the object in the $ScriptCommand variable.

The last command gets the script command settings for the script command stored in $ScriptCommand and displays the settings for the user.

See Also