Get-SCScriptCommandSetting

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.

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 (http://go.microsoft.com/fwlink/p/?LinkID=113216).

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

Example 1: Get the script command settings for a specific script command

The first command gets the application profile object named SvcWebAppProfile01, and then stores the object in the $AppProfile variable.

The second command gets the script command object named PostInstall, and then 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.


PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $ScriptCommand = Get-SCScriptCommand -ApplicationProfile $AppProfile | Where {$_.Name -eq "PostInstall"}
PS C:\> Get-SCScriptCommandSetting -ScriptCommand $ScriptCommand

Related topics

Community Additions

ADD
Show: