Get-SCScriptCommandSetting

Gets the settings for a script command.

Syntax

Get-SCScriptCommandSetting
   -ScriptCommand <SCScriptCommand>
   [<CommonParameters>]

Description

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

Examples

Example 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.

Parameters

-ScriptCommand

Specifies a script command object.

Type:SCScriptCommand
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Outputs

ScriptCommandSetting

This cmdlet returns a ScriptCommandSetting object.