{"id":63,"date":"2010-06-10T13:48:51","date_gmt":"2010-06-10T19:48:51","guid":{"rendered":"http:\/\/localhost\/todd_wp\/automating_windows_7_boot_entry_creating_with_powershell\/"},"modified":"2013-07-09T11:39:14","modified_gmt":"2013-07-09T17:39:14","slug":"automating_windows_7_boot_entry_creating_with_powershell","status":"publish","type":"post","link":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/","title":{"rendered":"Automating Windows 7 Boot Entry Creation With PowerShell"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Recently I needed to create an automated process to make boot entries for developer lab machines to allow them to boot to a virtual hard disk (VHD). The main requirements were to make the process simple and easily configurable. In this blog post I\u2019ll show you the PowerShell script and accompanying XML settings file I used to get the job done.<\/p>\n<p><strong>Configuration file<\/strong><\/p>\n<p>The following XML configuration file (settings.xml) stores the settings for the boot entry. It allows you easily configure where the VHD is located and the description you would like to give to the boot entry. The Drive, Path, and Description values are extracted by the PowerShell script and used to configure the new boot entry.<\/p>\n<div id=\"codeSnippetWrapper\">\n<div id=\"codeSnippet\" style=\"text-align: left; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: 'Courier New', courier, monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible; border-style: none; padding: 0px;\">\n<pre style=\"text-align: left; line-height: 12pt; background-color: white; margin: 0em; width: 100%; font-family: 'Courier New', courier, monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible; border-style: none; padding: 0px;\"><span style=\"color: #0000ff;\">&lt;?<\/span><span style=\"color: #800000;\">xml<\/span> <span style=\"color: #ff0000;\">version<\/span><span style=\"color: #0000ff;\">=\"1.0\"<\/span> <span style=\"color: #ff0000;\">encoding<\/span><span style=\"color: #0000ff;\">=\"utf-8\"<\/span>?<span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"text-align: left; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New', courier, monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible; border-style: none; padding: 0px;\"><span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">Settings<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"text-align: left; line-height: 12pt; background-color: white; margin: 0em; width: 100%; font-family: 'Courier New', courier, monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible; border-style: none; padding: 0px;\">    <span style=\"color: #0000ff;\">&lt;<\/span><span style=\"color: #800000;\">BootEntry<\/span> <span style=\"color: #ff0000;\">Drive<\/span><span style=\"color: #0000ff;\">=\"C\"<\/span> <span style=\"color: #ff0000;\">Path<\/span><span style=\"color: #0000ff;\">=\"VHDsSP2010.VHD\"<\/span> <span style=\"color: #ff0000;\">Description<\/span><span style=\"color: #0000ff;\">=\"Boot To SP 2010 VHD\"<\/span> <span style=\"color: #0000ff;\">\/&gt;<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"text-align: left; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New', courier, monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible; border-style: none; padding: 0px;\"><span style=\"color: #0000ff;\">&lt;\/<\/span><span style=\"color: #800000;\">Settings<\/span><span style=\"color: #0000ff;\">&gt;<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<\/div>\n<\/div>\n<p><strong>PowerShell Script<\/strong><\/p>\n<div>\n<div>The full PowerShell Script can be downloaded <a href=\"https:\/\/toddbaginski.com\/blog\/files\/Article Files\/CreateBootEntryPowerShellScript.zip\" target=\"_blank\">here<\/a>. The following portions of the script do the heavy lifting.<\/div>\n<div><\/div>\n<div>\n<div>First, the PowerShell script returns the values from the settings.xml file.<\/div>\n<div><\/div>\n<div id=\"codeSnippetWrapper\">\n<pre id=\"codeSnippet\" style=\"text-align: left; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New', courier, monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible; border-style: none; padding: 0px;\">[System.Xml.XmlElement]$settings = Get-Settings\r\n$BootEntry = $settings.BootEntry\r\n$Drive = $BootEntry.Drive\r\n$Path = $BootEntry.Path\r\n$Description = $BootEntry.Description<\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<p>Then it copies the current boot entry and assigns it the description from the settings.xml file.<\/p>\n<div id=\"codeSnippetWrapper\">\n<pre id=\"codeSnippet\" style=\"text-align: left; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New', courier, monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible; border-style: none; padding: 0px;\">$BootEntryCopy = bcdedit \/copy <span style=\"color: #006080;\">'{current}'<\/span> \/d $BootEntry.Description<\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<p>Then the script extracts the GUID for the new boot entry.<\/p>\n<div id=\"codeSnippetWrapper\">\n<pre id=\"codeSnippet\" style=\"text-align: left; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New', courier, monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible; border-style: none; padding: 0px;\">$CLSID = $BootEntryCopy | ForEach-Object {$_.Remove(0,37).Replace(<span style=\"color: #006080;\">\".\"<\/span>,<span style=\"color: #006080;\">\"\"<\/span>)}<\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<p>Then it uses the values from the settings.xml file to create the path to the VHD which <strong>bcdedit<\/strong> uses to modify the boot entry.<\/p>\n<div id=\"codeSnippetWrapper\">\n<pre id=\"codeSnippet\" style=\"text-align: left; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New', courier, monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible; border-style: none; padding: 0px;\">$VHD = <span style=\"color: #006080;\">'vhd=['<\/span> + $Drive + ':]' + $Path<\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<p>Finally, the script calls <strong>bcdedit<\/strong> to configure the boot entry.<\/p>\n<div id=\"codeSnippetWrapper\">\n<pre id=\"codeSnippet\" style=\"text-align: left; line-height: 12pt; background-color: #f4f4f4; margin: 0em; width: 100%; font-family: 'Courier New', courier, monospace; direction: ltr; color: black; font-size: 8pt; overflow: visible; border-style: none; padding: 0px;\">bcdedit \/set $CLSID device $VHD\r\nbcdedit \/set $CLSID osdevice $VHD\r\nbcdedit \/set $CLSID detecthal on<\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<p>The script output looks like this when it is run. (Your GUID will differ from the screenshot.)<\/p>\n<p><a href=\"https:\/\/toddbaginski.com\/blog\/images\/www_toddbaginski_com\/blog\/WindowsLiveWriter\/AutomatingWindows7BootEntryCreatingWithP_11298\/image_thumb.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"PowerShell Ouput\" src=\"https:\/\/toddbaginski.com\/blog\/images\/www_toddbaginski_com\/blog\/WindowsLiveWriter\/AutomatingWindows7BootEntryCreatingWithP_11298\/image_thumb.png\" alt=\"PowerShell Ouput\" width=\"605\" height=\"521\" border=\"0\" \/><\/a><\/p>\n<p>Enjoy the script, I hope it helps you out!<\/p>\n<p>Thanks to my buddy <a href=\"http:\/\/stsadm.blogspot.com\" target=\"_blank\">Gary Lapointe<\/a> for showing me how to make XML settings files with PowerShell!<\/p>\n<p>Thanks to <a href=\"http:\/\/blogs.msdn.com\/b\/cmayo\" target=\"_blank\">Chris Mayo<\/a> for showing me how to use<strong> BCDEDIT<\/strong> to make custom boot entires. His blog series that describes how to make bootable VHDs is excellent.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Recently I needed to create an automated process to make boot entries for developer lab machines to allow them to boot to a virtual hard<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[89],"tags":[5,8],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-operations","tag-helpful-code","tag-virtual-environments"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Recently I needed to create an automated process to make boot entries for developer lab machines to allow them to boot to a virtual hard disk (VHD). The main requirements were to make the process simple and easily configurable. In this blog post I\u2019ll show you the PowerShell script and accompanying XML settings file\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Todd Baginski\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Todd Baginski&#039;s Blog - An AI, SharePoint, Office 365, Azure, Power Apps, Power Platform, and Mobile Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Automating Windows 7 Boot Entry Creation With PowerShell - Todd Baginski&#039;s Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Recently I needed to create an automated process to make boot entries for developer lab machines to allow them to boot to a virtual hard disk (VHD). The main requirements were to make the process simple and easily configurable. In this blog post I\u2019ll show you the PowerShell script and accompanying XML settings file\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2010-06-10T19:48:51+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2013-07-09T17:39:14+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@toddbaginski\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Automating Windows 7 Boot Entry Creation With PowerShell - Todd Baginski&#039;s Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Recently I needed to create an automated process to make boot entries for developer lab machines to allow them to boot to a virtual hard disk (VHD). The main requirements were to make the process simple and easily configurable. In this blog post I\u2019ll show you the PowerShell script and accompanying XML settings file\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@toddbaginski\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/automating_windows_7_boot_entry_creating_with_powershell\\\/#blogposting\",\"name\":\"Automating Windows 7 Boot Entry Creation With PowerShell - Todd Baginski's Blog\",\"headline\":\"Automating Windows 7 Boot Entry Creation With PowerShell\",\"author\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/author\\\/todd\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/images\\\/www_toddbaginski_com\\\/blog\\\/WindowsLiveWriter\\\/AutomatingWindows7BootEntryCreatingWithP_11298\\\/image_thumb.png\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/automating_windows_7_boot_entry_creating_with_powershell\\\/#articleImage\"},\"datePublished\":\"2010-06-10T13:48:51-04:00\",\"dateModified\":\"2013-07-09T11:39:14-04:00\",\"inLanguage\":\"en\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/automating_windows_7_boot_entry_creating_with_powershell\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/automating_windows_7_boot_entry_creating_with_powershell\\\/#webpage\"},\"articleSection\":\"Operations, Helpful Code, Virtual Environments\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/automating_windows_7_boot_entry_creating_with_powershell\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/toddbaginski.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/operations\\\/#listItem\",\"name\":\"Operations\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/operations\\\/#listItem\",\"position\":2,\"name\":\"Operations\",\"item\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/operations\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/automating_windows_7_boot_entry_creating_with_powershell\\\/#listItem\",\"name\":\"Automating Windows 7 Boot Entry Creation With PowerShell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/automating_windows_7_boot_entry_creating_with_powershell\\\/#listItem\",\"position\":3,\"name\":\"Automating Windows 7 Boot Entry Creation With PowerShell\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/operations\\\/#listItem\",\"name\":\"Operations\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/#person\",\"name\":\"Todd Baginski\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/author\\\/todd\\\/#author\",\"url\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/author\\\/todd\\\/\",\"name\":\"Todd Baginski\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/automating_windows_7_boot_entry_creating_with_powershell\\\/#webpage\",\"url\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/automating_windows_7_boot_entry_creating_with_powershell\\\/\",\"name\":\"Automating Windows 7 Boot Entry Creation With PowerShell - Todd Baginski's Blog\",\"description\":\"Recently I needed to create an automated process to make boot entries for developer lab machines to allow them to boot to a virtual hard disk (VHD). The main requirements were to make the process simple and easily configurable. In this blog post I\\u2019ll show you the PowerShell script and accompanying XML settings file\",\"inLanguage\":\"en\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/automating_windows_7_boot_entry_creating_with_powershell\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/author\\\/todd\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/author\\\/todd\\\/#author\"},\"datePublished\":\"2010-06-10T13:48:51-04:00\",\"dateModified\":\"2013-07-09T11:39:14-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/\",\"name\":\"Todd Baginski's Blog\",\"description\":\"An AI, SharePoint, Office 365, Azure, Power Apps, Power Platform, and Mobile Blog\",\"inLanguage\":\"en\",\"publisher\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Automating Windows 7 Boot Entry Creation With PowerShell - Todd Baginski's Blog","description":"Recently I needed to create an automated process to make boot entries for developer lab machines to allow them to boot to a virtual hard disk (VHD). The main requirements were to make the process simple and easily configurable. In this blog post I\u2019ll show you the PowerShell script and accompanying XML settings file","canonical_url":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/#blogposting","name":"Automating Windows 7 Boot Entry Creation With PowerShell - Todd Baginski's Blog","headline":"Automating Windows 7 Boot Entry Creation With PowerShell","author":{"@id":"https:\/\/toddbaginski.com\/blog\/author\/todd\/#author"},"publisher":{"@id":"https:\/\/toddbaginski.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/toddbaginski.com\/blog\/images\/www_toddbaginski_com\/blog\/WindowsLiveWriter\/AutomatingWindows7BootEntryCreatingWithP_11298\/image_thumb.png","@id":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/#articleImage"},"datePublished":"2010-06-10T13:48:51-04:00","dateModified":"2013-07-09T11:39:14-04:00","inLanguage":"en","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/#webpage"},"isPartOf":{"@id":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/#webpage"},"articleSection":"Operations, Helpful Code, Virtual Environments"},{"@type":"BreadcrumbList","@id":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/toddbaginski.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/category\/operations\/#listItem","name":"Operations"}},{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/category\/operations\/#listItem","position":2,"name":"Operations","item":"https:\/\/toddbaginski.com\/blog\/category\/operations\/","nextItem":{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/#listItem","name":"Automating Windows 7 Boot Entry Creation With PowerShell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/#listItem","position":3,"name":"Automating Windows 7 Boot Entry Creation With PowerShell","previousItem":{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/category\/operations\/#listItem","name":"Operations"}}]},{"@type":"Person","@id":"https:\/\/toddbaginski.com\/blog\/#person","name":"Todd Baginski"},{"@type":"Person","@id":"https:\/\/toddbaginski.com\/blog\/author\/todd\/#author","url":"https:\/\/toddbaginski.com\/blog\/author\/todd\/","name":"Todd Baginski"},{"@type":"WebPage","@id":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/#webpage","url":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/","name":"Automating Windows 7 Boot Entry Creation With PowerShell - Todd Baginski's Blog","description":"Recently I needed to create an automated process to make boot entries for developer lab machines to allow them to boot to a virtual hard disk (VHD). The main requirements were to make the process simple and easily configurable. In this blog post I\u2019ll show you the PowerShell script and accompanying XML settings file","inLanguage":"en","isPartOf":{"@id":"https:\/\/toddbaginski.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/#breadcrumblist"},"author":{"@id":"https:\/\/toddbaginski.com\/blog\/author\/todd\/#author"},"creator":{"@id":"https:\/\/toddbaginski.com\/blog\/author\/todd\/#author"},"datePublished":"2010-06-10T13:48:51-04:00","dateModified":"2013-07-09T11:39:14-04:00"},{"@type":"WebSite","@id":"https:\/\/toddbaginski.com\/blog\/#website","url":"https:\/\/toddbaginski.com\/blog\/","name":"Todd Baginski's Blog","description":"An AI, SharePoint, Office 365, Azure, Power Apps, Power Platform, and Mobile Blog","inLanguage":"en","publisher":{"@id":"https:\/\/toddbaginski.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Todd Baginski's Blog - An AI, SharePoint, Office 365, Azure, Power Apps, Power Platform, and Mobile Blog","og:type":"article","og:title":"Automating Windows 7 Boot Entry Creation With PowerShell - Todd Baginski's Blog","og:description":"Recently I needed to create an automated process to make boot entries for developer lab machines to allow them to boot to a virtual hard disk (VHD). The main requirements were to make the process simple and easily configurable. In this blog post I\u2019ll show you the PowerShell script and accompanying XML settings file","og:url":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/","og:image":"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg","og:image:secure_url":"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg","article:published_time":"2010-06-10T19:48:51+00:00","article:modified_time":"2013-07-09T17:39:14+00:00","twitter:card":"summary","twitter:site":"@toddbaginski","twitter:title":"Automating Windows 7 Boot Entry Creation With PowerShell - Todd Baginski's Blog","twitter:description":"Recently I needed to create an automated process to make boot entries for developer lab machines to allow them to boot to a virtual hard disk (VHD). The main requirements were to make the process simple and easily configurable. In this blog post I\u2019ll show you the PowerShell script and accompanying XML settings file","twitter:creator":"@toddbaginski","twitter:image":"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg"},"aioseo_meta_data":{"post_id":"63","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2022-02-14 15:54:16","updated":"2025-06-03 20:52:21"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/toddbaginski.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/toddbaginski.com\/blog\/category\/operations\/\" title=\"Operations\">Operations<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAutomating Windows 7 Boot Entry Creation With PowerShell\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/toddbaginski.com\/blog"},{"label":"Operations","link":"https:\/\/toddbaginski.com\/blog\/category\/operations\/"},{"label":"Automating Windows 7 Boot Entry Creation With PowerShell","link":"https:\/\/toddbaginski.com\/blog\/automating_windows_7_boot_entry_creating_with_powershell\/"}],"_links":{"self":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":5,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":927,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions\/927"}],"wp:attachment":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}