{"id":1484,"date":"2015-03-16T11:02:03","date_gmt":"2015-03-16T16:02:03","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=1484"},"modified":"2015-03-16T11:02:03","modified_gmt":"2015-03-16T16:02:03","slug":"adding-an-existing-vhd-file-to-your-boot-from-vhd-menu","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=1484","title":{"rendered":"Adding an existing VHD file to your \u201cBoot from VHD\u201d menu"},"content":{"rendered":"<div class=\"postHeader\">\n<h1 class=\"postTitle\"><a title=\"Permalink to Adding an existing VHD file to your \u201cBoot from VHD\u201d menu\" href=\"http:\/\/mythoughtsonit.com\/2012\/03\/adding-an-existing-vhd-file-to-your-boot-from-vhd-menu\/\">Adding an existing VHD file to your \u201cBoot from VHD\u201d menu<\/a><\/h1>\n<p><a title=\"http:\/\/mythoughtsonit.com\/2012\/03\/adding-an-existing-vhd-file-to-your-boot-from-vhd-menu\/\" href=\"http:\/\/mythoughtsonit.com\/2012\/03\/adding-an-existing-vhd-file-to-your-boot-from-vhd-menu\/\" target=\"_blank\">http:\/\/mythoughtsonit.com\/2012\/03\/adding-an-existing-vhd-file-to-your-boot-from-vhd-menu\/ <\/a><\/p>\n<div class=\"bottom\">\n<div><span class=\"postDate\">March 22, 2012<\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"postContent\">\n<p><a href=\"http:\/\/i0.wp.com\/mythoughtsonit.com\/wp-content\/uploads\/2012\/03\/image9.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" src=\"http:\/\/i2.wp.com\/mythoughtsonit.com\/wp-content\/uploads\/2012\/03\/image_thumb7.png?resize=244%2C135\" alt=\"image\" width=\"244\" height=\"135\" align=\"right\" border=\"0\" \/><\/a>There are more than a few ways to work with Windows Boot from VHD. I detailed one of the easiest ways to set this up in yesterdays post and that was to let Widows Setup do the work for you. In this post I will show you the easiest way I have found to add an existing VHD file to your boot menu.<\/p>\n<p>&nbsp;<\/p>\n<p>Commands to add an existing VHD to your boot menu:<\/p>\n<ul>\n<li><code>bcdedit \/copy {originalguid} \/d \"New Windows 7 Installation\"<\/code><\/li>\n<li><code>bcdedit \/set {newguid} device vhd=[D:]\\Image.vhd<\/code><\/li>\n<li><code>bcdedit \/set {newguid} osdevice vhd=[D:]\\Image.vhd<\/code><\/li>\n<li><code>bcdedit \/set {newguid} detecthal on<\/code><\/li>\n<\/ul>\n<p><code><span style=\"font-size: xx-small;\">For more information on these commands can be found on TechNet:<span class=\"Apple-converted-space\">\u00a0<\/span><br \/>\n<\/span><a title=\"http:\/\/technet.microsoft.com\/en-us\/library\/dd799299(v=ws.10).aspx\" href=\"http:\/\/technet.microsoft.com\/en-us\/library\/dd799299(v=ws.10).aspx\"><span style=\"font-size: xx-small;\">http:\/\/technet.microsoft.com\/en-us\/library\/dd799299(v=ws.10).aspx<\/span><\/a><\/code><\/p>\n<p>The part that I don\u2019t like here is having to type in the GUID correctly. I think there is a high chance for failure. I would much rather have a batch file script read the original GUID and write it for me so I don\u2019t fat finger it and type it wrong.<\/p>\n<p>That is exactly what my friend, coworker, and IT Pro Guru, Dan Stolts, has done. He has written a DOS batch file that will execute those commands. I guess they are now called command shell scripts but you can use either the CMD or the BAT extension on the script.<\/p>\n<p>Here is the syntax of the command that will add the VHD file \u201cc:temp\\server8.vhd\u201d to the boot menu listed as Server8 :<\/p>\n<p>C:\\Temp&gt;AutoBootVHD-BCD.bat c:\\temp\\server8.vhd Server8<\/p>\n<p>Now isn\u2019t that a lot easier?<\/p>\n<p>&nbsp;<\/p>\n<p>You can pull the script off his blog post here:<br \/>\n<a title=\"http:\/\/blogs.technet.com\/b\/danstolts\/archive\/2011\/03\/29\/how-to-automatically-create-bcdedit-data-for-a-boot2vhd-file-on-your-windows-7-or-windows-server-2008-r2-machine.aspx\" href=\"http:\/\/blogs.technet.com\/b\/danstolts\/archive\/2011\/03\/29\/how-to-automatically-create-bcdedit-data-for-a-boot2vhd-file-on-your-windows-7-or-windows-server-2008-r2-machine.aspx\">http:\/\/blogs.technet.com\/b\/danstolts\/archive\/2011\/03\/29\/how-to-automatically-create-bcdedit-data-for-a-boot2vhd-file-on-your-windows-7-or-windows-server-2008-r2-machine.aspx<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Adding an existing VHD file to your \u201cBoot from VHD\u201d menu http:\/\/mythoughtsonit.com\/2012\/03\/adding-an-existing-vhd-file-to-your-boot-from-vhd-menu\/ March 22, 2012 There are more than a few ways to work with Windows Boot from VHD. I detailed one of the easiest ways to set this up &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=1484\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1484","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1484"}],"version-history":[{"count":1,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1484\/revisions"}],"predecessor-version":[{"id":1485,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1484\/revisions\/1485"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1484"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}