Skip to content

Instantly share code, notes, and snippets.

@madd0
Created April 18, 2012 09:14
Show Gist options
  • Save madd0/2412241 to your computer and use it in GitHub Desktop.
Save madd0/2412241 to your computer and use it in GitHub Desktop.
Create VHD with diskpart
C:\>diskpart
Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: XXXXXX
DISKPART> create vdisk file=C:\VHDs\Win8CP.vhd type=expandable maximum=60000
100 percent completed
DiskPart successfully created the virtual disk file.
DISKPART> select vdisk file=C:\VHDs\Win8CP.vhd
DiskPart successfully selected the virtual disk file.
DISKPART> attach vdisk
100 percent completed
DiskPart successfully attached the virtual disk file.
DISKPART> create partition primary
DiskPart succeeded in creating the specified partition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment