Microsoft comes out with free spyware, virus, and malicious sofware protection
September 29, 2009SCCM immediately fails after trying to partition format disk
October 12, 2009This is a pretty straightforward process.
DISKPART Process
- First thing you want to do is right click on command prompt and run as administrator.
- Once the command prompt is open type the following command create vdisk file=c:VMswindows7.vhd type=fixed maximum=25000 Once you type this command you will see a balloon that says Microsoft VHD HBA
- Next thing you want to do is select the vdisk by issuing the following command sel vdisk file=c:VMswindows7.vhd
- Next attach to the vdisk attach vdisk
- If you issue the list disk command it will show you your hard drive and the vhd you just created.
- Next sel disk 3 which will select your vdisk
- Then create part primary – create the primary partition
- select part 1 – Select the partition
- active – This makes the partition active
- format fs=ntfs quick – This command formats your disk ntfs quick
- assign – This command assigns the disk
- You can now exist diskpart
Boot to Windows 7 DVD
- Now boot to your Windows 7 DVD.
- Once you’re on the install now step push shift+f10 – this will open the command prompt
- Type the following commands below
- diskpart
- select vdisk file=d:virtualwin7.vhd
- attach vdisk
- Now do a custom install and select your mounted VHD file
Boot to OS
- Now when you boot your PC you should see 2 windows7 options in the boot loader you can fix this by booting into either OS
- bcdedit /v
- Copy the identifier for the VHD file it is the long string of characters surrounded by the {XXX}
- Then issue this command to change the description in your boot loader
- bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} description “Windows 7 – VHD file”
- The last step if you would rather see the VHD install at the bottom of the boot loader issue this command
- bcdedit /displayorder {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} /addlast
Finished
Congratulations you have just installed Windows 7 to a VHD file.