PowerShell Logo Small

Dismount-VHD



This is the built-in help made by Microsoft for the command 'Dismount-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

Dismounts a virtual hard disk.

SYNTAX


Dismount-VHD [-Path] <String[]> [-ComputerName <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]
Dismount-VHD [-DiskNumber] <UInt32> [-ComputerName <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Dismount-VHD cmdlet dismounts a virtual hard disk.



<

RELATED LINKS


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

REMARKS

<

Examples


Example 1

PS C:\>Dismount-VHD –Path c:\test\testvhdx.vhdx



Dismounts an attached virtual hard disk where the path to the virtual hard disk file path is c:\test\testvhdx.vhdx.




Example 2

PS C:\>Dismount-VHD –DiskNumber 6



Dismounts the attached virtual hard disk image with disk number 6.