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.

Aliases

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

Aliases

infa

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-InformationVariable<System.String>

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

Aliases

iv

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-Path<System.String>

Specifies the path of the hardened .vhdx file.

Aliases

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.

Aliases

none

必須/オプション

true

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-TemplateName<String>

Specifies a name for the template.

Aliases

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.

Aliases

none

必須/オプション

true

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-Confirm

コマンドレットを実行する前に確認メッセージを表示します。

必須/オプション

false

位置

named

既定値

false

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-WhatIf

コマンドレットが実行された場合に何が起きるのかを示します。コマンドレットは実行されません。

必須/オプション

false

位置

named

既定値

false

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

<CommonParameters>

このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • String, Version, X509Certificate2

出力

出力型は、コマンドレットが出力するオブジェクトの型です。

使用例

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