Monday, February 22, 2010

Add VHD to Windows 7 boot menu

Nothing new here, and therefor short. It's mainly so I have this stored where I can easily reach it.
(Content stolen from others)

Here's how to add a VHD to Windows 7's boot menu.
  • Start BCDEdit as Administrator
  • Keep it simple: and copy an existing item (type this literally, but choose a new name)
         bcdedit /copy {current} /d "new name here"
    This will show you the newly created GUID, which we use in the next commands.
  • Let the BCD know which files to use (note the square brackets and colon for the drive letter)
         bcdedit /set {new GUID} device vhd=[drive:]\<path to your vhd>\<your vhd>.vhd
         bcdedit /set {new GUID} osdevice vhd=[drive:]\<path to your vhd>\<your vhd>.vhd

Should you want to change the item's description:
  • Find the GUID
         bcdedit /enum:
  • Change description
         bcdedit /set {GUID} description "new description here"

For more information about the BCDEdit tool, read the article at TechNet

No comments: