Get-SCScriptCommandSetting
Applies To: System Center 2012 - Virtual Machine Manager
Get-SCScriptCommandSetting
Gets the settings for a script command.
Syntax
Parameter Set: Default
Get-SCScriptCommandSetting -ScriptCommand <SCScriptCommand> [ <CommonParameters>]
Detailed 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<SCScriptCommand>
Specifies a script command object.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- ScriptCommandSetting
Examples
1: Get the script command settings for a specific script command.
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.
PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $ScriptCommand = Get-SCScriptCommand -ApplicationProfile $AppProfile | Where {$_.Name -eq "PostInstall"}
PS C:\> Get-SCScriptCommandSetting -ScriptCommand $ScriptCommand