Get-SCScriptCommandSetting
Get-SCScriptCommandSetting
Gets the settings for a script command.
構文
Parameter Set: Default
Get-SCScriptCommandSetting -ScriptCommand <SCScriptCommand> [ <CommonParameters>]
詳細説明
The Get-SCScriptCommandSetting cmdlet gets the settings that have been configured on a script command.
パラメーター
-ScriptCommand<SCScriptCommand>
Specifies a script command object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- ScriptCommandSetting
例
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