Get-CMVhd

Gets VHD images.

Syntax

Get-CMVhd
   -Id <String[]>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMVhd
   [-Name <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMVhd cmdlet gets one or more virtual hard disk (VHD) images that were created by using the operating system deployment feature.

Examples

Example 1: Get a VHD image by using its name

PS C:\> Get-CMVhd -Name "VHDAccounting08"

This command gets the virtual hard disk (VHD) image named VHDAccounting08.

Required Parameters

-Id

Specifies an array of IDs of VHD images.

Type:String[]
Aliases:PackageId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a VHD image.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False