Export (0) Print
Expand All

Detach vdisk

Published: April 17, 2012

Updated: April 17, 2012

Applies To: Windows 7, Windows 8, Windows Server 2008 R2, Windows Server 2012

Stops the selected virtual hard disk (VHD) from appearing as a local hard disk drive on the host computer. When a VHD is detached, you can copy it to other locations.

noteNote
This command is only applicable to Windows 7 and Windows Server 2008 R2.

detach vdisk [noerr]

 

Parameter Description

noerr

Used for scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code.

  • A VHD must be selected and detached for this operation to succeed. Use the select vdisk command to select a VHD and shift the focus to it.

To detach the selected VHD, type:

detach vdisk

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft