Get-SCScriptCommandSetting

스크립트 명령에 대한 설정을 가져옵니다.

Syntax

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

Description

Get-SCScriptCommandSetting cmdlet은 스크립트 명령에 구성된 설정을 가져옵니다.

예제

예제 1: 특정 스크립트 명령에 대한 스크립트 명령 설정 가져오기

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

첫 번째 명령은 SvcWebAppProfile01이라는 애플리케이션 프로필 개체를 가져오고 개체를 $AppProfile 변수에 저장합니다.

두 번째 명령은 PostInstall이라는 스크립트 명령 개체를 가져오고 개체를 $ScriptCommand 변수에 저장합니다.

마지막 명령은 $ScriptCommand 저장된 스크립트 명령에 대한 스크립트 명령 설정을 가져오고 사용자에 대한 설정을 표시합니다.

매개 변수

-ScriptCommand

스크립트 명령 개체를 지정합니다.

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

출력

ScriptCommandSetting

이 cmdlet은 ScriptCommandSetting 개체를 반환합니다.