PowerShell Logo Small

Test-VHD



This is the built-in help made by Microsoft for the command 'Test-VHD', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Tests a virtual hard disk for any problems that would make it unusable.

SYNTAX


Test-VHD [-Path] <String[]> [-ComputerName <String[]>] [<CommonParameters>]
Test-VHD [-Path] <String[]> [-ComputerName <String[]>] -SupportPersistentReservations [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Test-VHD cmdlet tests a virtual hard disk for any problems that would make it unusable.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306970

REMARKS

<

Examples


Example 1

PS C:\>Test-VHD –Path Diff2.vhdx



Tests whether the virtual hard disk chain is in a usable state that starts with the virtual hard disk associated with Diff2.vhdx.