Protect-ServerVHDX
Protect-ServerVHDX
Prepares a virtual hard disk to deploy as a hardened virtual machine.
구문
Parameter Set: PopulateFrom
Protect-ServerVHDX -Certificate <X509Certificate2> -Path <System.String> -PopulateFrom <String> [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [-TemplateName <String> ] [-Version <Version> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SpecifyVolumeNameAndVersion
Protect-ServerVHDX -Certificate <X509Certificate2> -Path <System.String> -TemplateName <String> -Version <Version> [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
자세한 설명
The Protect-ServerVHDX cmdlet prepares a virtual hard disk to deploy as a hardened virtual machine. The virtual hard disk must be in the .vhdx format. This cmdlet overwrites the .vhdx file. You cannot use that file for any other purpose.
매개 변수
-Certificate<X509Certificate2>
Specifies an X509Certificate2 object.
별칭 |
none |
필수 여부 |
true |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-InformationAction<System.Management.Automation.ActionPreference>
Specifies how this cmdlet responds to an information event. 이 매개 변수에 허용되는 값은 다음과 같습니다.
-- SilentlyContinue
-- Stop
-- Continue
-- Inquire
-- Ignore
-- Suspend
별칭 |
infa |
필수 여부 |
false |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-InformationVariable<System.String>
Specifies a variable in which to store an information event message.
별칭 |
iv |
필수 여부 |
false |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Path<System.String>
Specifies the path of the hardened .vhdx file.
별칭 |
none |
필수 여부 |
true |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-PopulateFrom<String>
Specifies the path of a file that contains a previously published volume signature catalog. The file name extension is .vhdx.
별칭 |
none |
필수 여부 |
true |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-TemplateName<String>
Specifies a name for the template.
별칭 |
none |
필수 여부 |
true |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Version<Version>
Specifies a value that uniquely identifies this version of the template. The version value uses the form a.b.c.d, where each value is an integer less than 65536.
별칭 |
none |
필수 여부 |
true |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
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으로 파이프할 수 있는 개체의 형식입니다.
- String, Version, X509Certificate2
출력
출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.
예
Example 1: Harden a .vhdx file by populating from a file
This command prepares the .vhdx that the VirtualDiskPath specifies. The command uses the name and version information from Build12VirtualDisk.vhdx. The command specifies the template name Template 22.
PS C:\> Protect-ServerVHDX -Certificate (dir cert:currentuser\my)[0] -PopulateFrom "Build12VirtualDisk.vhdx" -VirtualDiskPath "HardenedVirtualDisk.vhdx" -TemplateName "Template 22"
Example 2: Harden a .vhdx file by specifying name and verison
This command prepares the .vhdx that the VirtualDiskPath specifies. The command uses the name and version information specified by the TemplateName and Version parameters.
PS C:\> Protect-ServerVHDX -Certificate (dir cert:currentuser\my)[0] -VirtualDiskPath "HardenedVirtualDisk.vhdx" -TemplateName "Template 22" -Version 10.9.8.12