{"id":82,"date":"2018-03-13T17:56:40","date_gmt":"2018-03-13T17:56:40","guid":{"rendered":"http:\/\/www.blog.mozesoft.com\/?p=82"},"modified":"2018-05-03T16:04:04","modified_gmt":"2018-05-03T16:04:04","slug":"ways-to-mount-and-unmount-vhd-vhdx-from-command","status":"publish","type":"post","link":"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/","title":{"rendered":"Ways to Mount and Unmount VHD\/VHDX from Command"},"content":{"rendered":"<p>Virtual hard disk (VHD \/ VHDX) is a disk image file format for storing the <a href=\"https:\/\/www.top-password.com\/blog\/mount-and-unmount-vhd-vhdx-from-command-line\/\" rel=\"nofollow\">complete contents<\/a> of a hard drive. In this tutorial we\u2019ll show you how to mount and unmount VHD \/ VHDX file from Command Prompt and PowerShell.<\/p>\n<p><strong>Method 1: Mount and Unmount VHD\/VHDX from Command Prompt<\/strong><\/p>\n<p>This method allows you to mount and unmount VHD\/VHDX file in all versions of Windows, including Windows 10 \/ 8 \/ 7 and Windows Server.<\/p>\n<ol>\n<li>Open the Command Prompt in Administrator mode.<\/li>\n<li>At the Command Prompt, type <strong>diskpart<\/strong> and press Enter to access the command-line disk partitioning utility.<\/li>\n<li>Before mounting or unmounting virtual disk, you need to specify the location of your vhd\/vhdx file. Type the following command and hit Enter.<br \/>\n<code>select vdisk file=\"[location of vhd]\"<\/code><\/li>\n<li>You can now mount or mount your VHD\/VHDX file using the below commands:\n<ul>\n<li>To mount VHD\/VHDX file, type <strong>attach vdisk<\/strong> and press Enter. You can see a new virtual hard drive in your Disk Management and Windows Explorer.<\/li>\n<li>To unmount a virtual hard disk, type <strong>detach vdisk<\/strong> and press Enter.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>Method 2: Mount and Unmount VHD\/VHDX from PowerShell<\/strong><\/p>\n<p>In Windows Server 2016 \/ 2012 \/ 2008, you can also mount and unmount VHD\/VHDX file using the PowerShell cmdlet. Here\u2019s how:<\/p>\n<ol>\n<li>Open the PowerShell as Administrator.<\/li>\n<li>When the command-line window opens, you can run the Mount-VHD cmdlet to mount your vhd\/vhdx file.<br \/>\n<code>Mount-VHD \u2013Path \"[location of vhd]\"<\/code><\/li>\n<li>To unmount your virtual hard disk, just run the Dismount-VHD cmdlet instead.<br \/>\n<code>Dismount-VHD \u2013Path \"[location of vhd]\"<\/code><\/li>\n<\/ol>\n<p>If you get the error message like \u201c<em>Mount-VHD is not recognized as the name of a cmdlet<\/em>\u201c, you need to add a feature named \u201c<strong>Hyper-V Module for Windows PowerShell<\/strong>\u201d to your server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Virtual hard disk (VHD \/ VHDX) is a disk image file format for storing the complete contents of a hard drive. In this tutorial we\u2019ll show you how to mount and unmount VHD \/ VHDX file from Command Prompt and PowerShell. Method 1: Mount and Unmount VHD\/VHDX from Command Prompt This method allows you to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Ways to Mount and Unmount VHD\/VHDX from Command - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ways to Mount and Unmount VHD\/VHDX from Command - Blog\" \/>\n<meta property=\"og:description\" content=\"Virtual hard disk (VHD \/ VHDX) is a disk image file format for storing the complete contents of a hard drive. In this tutorial we\u2019ll show you how to mount and unmount VHD \/ VHDX file from Command Prompt and PowerShell. Method 1: Mount and Unmount VHD\/VHDX from Command Prompt This method allows you to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-13T17:56:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-05-03T16:04:04+00:00\" \/>\n<meta name=\"author\" content=\"Adsank\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adsank\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/\"},\"author\":{\"name\":\"Adsank\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\"},\"headline\":\"Ways to Mount and Unmount VHD\/VHDX from Command\",\"datePublished\":\"2018-03-13T17:56:40+00:00\",\"dateModified\":\"2018-05-03T16:04:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/\"},\"wordCount\":271,\"commentCount\":0,\"articleSection\":[\"Windows\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/\",\"url\":\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/\",\"name\":\"Ways to Mount and Unmount VHD\/VHDX from Command - Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#website\"},\"datePublished\":\"2018-03-13T17:56:40+00:00\",\"dateModified\":\"2018-05-03T16:04:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.mozesoft.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ways to Mount and Unmount VHD\/VHDX from Command\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#website\",\"url\":\"https:\/\/www.mozesoft.com\/blog\/\",\"name\":\"Blog\",\"description\":\"IT Knowledgebase\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.mozesoft.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\",\"name\":\"Adsank\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g\",\"caption\":\"Adsank\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ways to Mount and Unmount VHD\/VHDX from Command - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/","og_locale":"en_US","og_type":"article","og_title":"Ways to Mount and Unmount VHD\/VHDX from Command - Blog","og_description":"Virtual hard disk (VHD \/ VHDX) is a disk image file format for storing the complete contents of a hard drive. In this tutorial we\u2019ll show you how to mount and unmount VHD \/ VHDX file from Command Prompt and PowerShell. Method 1: Mount and Unmount VHD\/VHDX from Command Prompt This method allows you to [&hellip;]","og_url":"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/","og_site_name":"Blog","article_published_time":"2018-03-13T17:56:40+00:00","article_modified_time":"2018-05-03T16:04:04+00:00","author":"Adsank","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adsank","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/#article","isPartOf":{"@id":"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/"},"author":{"name":"Adsank","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c"},"headline":"Ways to Mount and Unmount VHD\/VHDX from Command","datePublished":"2018-03-13T17:56:40+00:00","dateModified":"2018-05-03T16:04:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/"},"wordCount":271,"commentCount":0,"articleSection":["Windows"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/","url":"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/","name":"Ways to Mount and Unmount VHD\/VHDX from Command - Blog","isPartOf":{"@id":"https:\/\/www.mozesoft.com\/blog\/#website"},"datePublished":"2018-03-13T17:56:40+00:00","dateModified":"2018-05-03T16:04:04+00:00","author":{"@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c"},"breadcrumb":{"@id":"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mozesoft.com\/blog\/ways-to-mount-and-unmount-vhd-vhdx-from-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mozesoft.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Ways to Mount and Unmount VHD\/VHDX from Command"}]},{"@type":"WebSite","@id":"https:\/\/www.mozesoft.com\/blog\/#website","url":"https:\/\/www.mozesoft.com\/blog\/","name":"Blog","description":"IT Knowledgebase","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mozesoft.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c","name":"Adsank","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g","caption":"Adsank"}}]}},"_links":{"self":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":1,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":83,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions\/83"}],"wp:attachment":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}