Protect-ShieldingDataFile

Protect-ShieldingDataFile

Creates a shielding data file.

구문

Parameter Set: ExistingVMParameterSet
Protect-ShieldingDataFile [-ShieldingDataFilePath] <String> [-Owner] <Guardian> [[-Guardian] <Guardian[]> ] [-Force] [-InformationAction <ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ShieldedTemplateParameterSet
Protect-ShieldingDataFile [-ShieldingDataFilePath] <String> [-Owner] <Guardian> [-VolumeIDQualifier] <VolumeIDQualifier[]> [-WindowsUnattendFile] <NamedFileContent> [[-OtherFile] <NamedFileContent[]> ] [[-Guardian] <Guardian[]> ] [-Force] [-InformationAction <ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

자세한 설명

The Protect-ShieldingDataFile cmdlet creates a shielding data file. Use the shielding data file in the process of deploying a hardened virtual machine.

매개 변수

-Force

사용자에게 확인 메시지를 표시하지 않고 명령을 강제 실행합니다.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-Guardian<Guardian[]>

Specifies an array of Guardian objects for the shielding data.

별칭

none

필수 여부

false

위치

6

기본값

none

파이프라인 입력 허용 여부

true(ByPropertyName)

와일드카드 문자 허용 여부

false

-InformationAction<ActionPreference>

Specifies how this cmdlet responds to an information event. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- SilentlyContinue
-- Stop
-- Continue
-- Inquire
-- Ignore
-- Suspend

별칭

infa

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-InformationVariable<String>

Specifies a variable in which to store an information event message.

별칭

iv

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-OtherFile<NamedFileContent[]>

Specifies an array of files that the fabric administrator includes in the shielding process.

별칭

none

필수 여부

false

위치

5

기본값

none

파이프라인 입력 허용 여부

true(ByPropertyName)

와일드카드 문자 허용 여부

false

-Owner<Guardian>

Specifies the Guardian object that owns the shielding data.

별칭

none

필수 여부

true

위치

2

기본값

none

파이프라인 입력 허용 여부

true(ByPropertyName)

와일드카드 문자 허용 여부

false

-ShieldingDataFilePath<String>

Specifies the path of the shielding data file to create.

별칭

none

필수 여부

true

위치

1

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-VolumeIDQualifier<VolumeIDQualifier[]>

Specifies an array of VolumeIDQualifier objects. An ID defines which volumes match the shielding data.

별칭

none

필수 여부

true

위치

3

기본값

none

파이프라인 입력 허용 여부

true(ByPropertyName)

와일드카드 문자 허용 여부

false

-WindowsUnattendFile<NamedFileContent>

Specifies the Path of a valid unattend.xml file to provision virtual machines.

별칭

none

필수 여부

true

위치

4

기본값

none

파이프라인 입력 허용 여부

true(ByPropertyName)

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지를 표시합니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행되는 경우 발생할 결과를 보여 줍니다. cmdlet은 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216)

입력

입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.

  • Guardian, Guardian[], NamedFileContent, NamedFileContent[], String, VolumeIDQualifier[]

출력

출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.

Example 1: Create a shielding data file

The first command gets the Guardian object for the owner of the shielding data, and then stores that object in the $Owner variable.

The second command uses the New-VolumeIDQualifier cmdlet to create a volume ID qualifier, and then stores that object in the $VolumeIDQualifier variable.

The final command creates a shielding data file at the path specified by the ShieldingDataFilePath parameter. The command uses the values stored in $Owner and $VolumeIDQualifier. The command specifies a local unattend file.

PS C:\> $Owner = Get-HgsGuardian -FriendlyName "DefaultOwner"
PS C:\> $VolumeIDQualifier = @(New-VolumeIDQualifier -VolumeSignatureCatalogFilePath "VolumeSignatureCatalog.vsc" -VersionRule Equals)
PS C:\> Protect-ShieldingDataFile -ShieldingDataFilePath "ShieldingDataFile07.pdk" -Owner $Owner -VolumeIDQualifiers $VolumeIDQualifier -WindowsUnattendFile "unattend.xml"

관련 항목

Import-ShieldingDataFile

New-VolumeIDQualifier