Edit

Share via


Initialize-VMShieldingHelperVHD

Initializes a VHD for use as a shielding utility disk in a guarded fabric.

Syntax

Default (Default)

Initialize-VMShieldingHelperVHD
    -Path <String>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Protect-TemplateDisk cmdlet initializes a virtual hard disk (VHD) for use as a shielding utility disk in a guarded fabric.

Utility VHDs contain the software needed to shield an existing VM on a guarded fabric. A supported operating system must be installed on the disk before initializing it as a shielding helper VHD.

For more information about preparing a shielding helper VHD, see Shielded VMs - Hosting service provider prepares a VM Shielding Helper VHDhttps://technet.microsoft.com/en-us/windows-server-docs/security/guarded-fabric-shielded-vm/guarded-fabric-vm-shielding-helper-vhd at https://go.microsoft.com/fwlink/?linkid=832557.

Examples

Example 1: Initialize a virtual hard disk

PS C:\>Initialize-VMShieldingHelperVHD -Path "C:\temp\ShieldedVMUtility.vhdx"

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Path

Specifies the path of the .vhdx file to initialize.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.