Get-VHDSet

Get-VHDSet

Gets information about a VHD set.

Syntax

Parameter Set: Default
Get-VHDSet [-Path] <String[]> [-CimSession <CimSession[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential[]> ] [-GetAllPaths] [ <CommonParameters>]

Detaillierte Beschreibung

The Get-VHDSet cmdlet gets information about a virtual hard disk (VHD) set file. This information includes a list of all checkpoints that the set contains.

Checkpoint replaces the previous term, snapshot.

Parameter

-CimSession<CimSession[]>

Das Cmdlet wird in einer Remotesitzung oder auf einem Remotecomputer ausgeführt. Geben Sie einen Computernamen oder ein Sitzungsobjekt ein, wie z. B. die Ausgabe eines New-CimSession oder Get-CimSession-Cmdlets. Der Standardwert ist die aktuelle Sitzung auf dem lokalen Computer.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-ComputerName<String[]>

Specifies one or more Hyper-V hosts that run this cmdlet. NetBIOS names, IP addresses, and fully qualified domain names are allowable. The default is the local computer. Use localhost or a dot (.) to specify the local computer explicitly.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Credential<PSCredential[]>

Specifies one or more user accounts that have permission to perform this action. The default is the current user.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-GetAllPaths

Indicates that this cmdlet gets the paths of all files on which this VHD set file depends.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Path<String[]>

Specifies an array of paths of VHD set files that this cmdlet gets. If you specify a file name or a relative path, the cmdlet determines the full path relative to the current working folder.

Aliase

FullName

Erforderlich?

true

Position?

1

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByValue,ByPropertyName)

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

  • Microsoft.Vhd.PowerShell.VHDSetInfo

    This cmdlet returns VHDSetInfo objects.

Beispiele

Example 1: Get a VHD set and files on which it depends

This command gets information about the VHD set file Data01.vhds. The information includes the paths of all files on which VHD set depends.

PS C:\>  Get-VHDSet -Path "Data01.vhds" -GetAllPaths 

Verwandte Themen

Optimize-VHDSet