Get-VHDSet
Get-VHDSet
Gets information about a VHD set.
Sintaxis
Parameter Set: Default
Get-VHDSet [-Path] <String[]> [-CimSession <CimSession[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential[]> ] [-GetAllPaths] [ <CommonParameters>]
Descripción detallada
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.
Parámetros
-CimSession<CimSession[]>
Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.
Alias |
none |
¿Necesario? |
false |
¿Posición? |
named |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
false |
¿Aceptar caracteres comodín? |
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.
Alias |
none |
¿Necesario? |
false |
¿Posición? |
named |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Credential<PSCredential[]>
Specifies one or more user accounts that have permission to perform this action. The default is the current user.
Alias |
none |
¿Necesario? |
false |
¿Posición? |
named |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-GetAllPaths
Indicates that this cmdlet gets the paths of all files on which this VHD set file depends.
Alias |
none |
¿Necesario? |
false |
¿Posición? |
named |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
false |
¿Aceptar caracteres comodín? |
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.
Alias |
FullName |
¿Necesario? |
true |
¿Posición? |
1 |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
true(ByValue,ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, vea about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de los objetos que el cmdlet emite.
Microsoft.Vhd.PowerShell.VHDSetInfo
This cmdlet returns VHDSetInfo objects.
Ejemplos
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