external help file | Module Name | online version | schema |
---|---|---|---|
Diag-V-help.xml |
Diag-V |
2.0.0 |
For each VM detected all associated VHD / VHDX are evaluated for there SupportPersistentReservations status.
Get-SharedVHD [[-Credential] <PSCredential>] [<CommonParameters>]
Automatically detects Standalone / Clustered Hyper-V and identifies all VHD / VHDX associated with each VM found. Results are returned about the SupportPersistentReservations status if each virtual drive.
Get-SharedVHD
Returns SupportPersistentReservations information for each VHD for every VM discovered. If SupportPersistentReservations is true, the VHD is shared.
Get-SharedVHD -Credential $credential
Returns SupportPersistentReservations information for each VHD for every VM discovered. If SupportPersistentReservations is true, the VHD is shared. Provided credentials are used.
PSCredential object for storing provided creds
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Author: Jake Morrison - @jakemorrison - https://techthoughts.info/ See the README for more details if you want to run this function remotely. If SupportPersistentReservations is true, the VHD / VHDX is shared.