Get-SCScriptCommand

애플리케이션 프로필, 애플리케이션 배포 또는 호스트 프로필에 대한 모든 스크립트 명령을 가져옵니다.

Syntax

Get-SCScriptCommand
   -ApplicationProfile <ApplicationProfile>
   [-VMMServer <ServerConnection>]
   [<CommonParameters>]
Get-SCScriptCommand
   -ApplicationDeployment <ApplicationDeployment>
   [-VMMServer <ServerConnection>]
   [<CommonParameters>]
Get-SCScriptCommand
   -PhysicalComputerProfile <PhysicalComputerProfile>
   [-VMMServer <ServerConnection>]
   [<CommonParameters>]

Description

Get-SCScriptCommand cmdlet은 애플리케이션 프로필, 애플리케이션 배포 또는 호스트 프로필에 대한 모든 스크립트 명령을 가져옵니다.

예제

예제 1: 애플리케이션 프로필과 연결된 모든 스크립트 명령 가져오기

PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $ScriptCommand = Get-SCScriptCommand -ApplicationProfile $AppProfile
PS C:\> $ScriptCommand

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

두 번째 명령은 $AppProfile 저장된 애플리케이션 프로필 개체에 대한 모든 스크립트 명령을 가져오고 $ScriptCommand 배열에 개체를 저장합니다.

마지막 명령은 $ScriptCommand 배열에 저장된 모든 스크립트 명령 개체에 대한 정보를 사용자에게 표시합니다.

예제 2: 애플리케이션 배포와 연결된 모든 스크립트 명령 가져오기

PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $AppDeployment = Get-SCApplicationDeployment -ApplicationProfile $AppProfile
PS C:\> $ScriptCommand = Get-SCScriptCommand -ApplicationDeployment $AppDeployment

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

두 번째 명령은 $AppProfile 저장된 애플리케이션 프로필에 대한 애플리케이션 배포 개체를 가져오고 개체를 $AppDeployment 변수에 저장합니다.

마지막 명령은 $AppDeployment 저장된 애플리케이션 배포 개체와 연결된 모든 스크립트 명령을 가져오고 스크립트 명령을 $ScriptCommand 저장합니다.

매개 변수

-ApplicationDeployment

애플리케이션 배포 개체를 지정합니다.

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

-ApplicationProfile

애플리케이션 프로필 개체를 지정합니다.

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

-PhysicalComputerProfile

컴퓨터에 운영 체제를 배포하는 데 사용되는 프로필을 지정합니다.

Type:PhysicalComputerProfile
Aliases:VMHostProfile
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VMMServer

VMM 서버 개체를 지정합니다.

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

출력

ScriptCommand

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