{"id":77471,"date":"2016-03-12T00:01:39","date_gmt":"2016-03-12T08:01:39","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/?p=77471"},"modified":"2019-02-18T09:19:43","modified_gmt":"2019-02-18T16:19:43","slug":"powertip-use-powershell-to-dismount-a-disk-image","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-use-powershell-to-dismount-a-disk-image\/","title":{"rendered":"PowerTip: Use PowerShell to dismount a disk image"},"content":{"rendered":"<p><strong>Summary<\/strong>: \u00a0Learn how to use Windows PowerShell to dismount a virtual disk or ISO.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\" \/>\u00a0How can I use Windows PowerShell to dismount a virtual disk?<\/p>\n<p style=\"padding-left: 30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\" \/>\u00a0Use the <strong>Dismount-DiskImage<\/strong> cmdlet. It will dismount either an ISO or a virtual hard disk. Specify the path then using <strong>-imagepath<\/strong>. Here is an example:<\/p>\n<p style=\"padding-left: 90px\">Dismount-DiskImage -imagepath \u201cC:\\fso\\myisodisk.iso\u201d<\/p>\n<p style=\"padding-left: 30px\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr_.ScriptoForTips.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-77491\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr_.ScriptoForTips.jpg\" alt=\"7610.Dr.ScriptoForTips\" width=\"96\" height=\"145\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: \u00a0Learn how to use Windows PowerShell to dismount a virtual disk or ISO. \u00a0How can I use Windows PowerShell to dismount a virtual disk? \u00a0Use the Dismount-DiskImage cmdlet. It will dismount either an ISO or a virtual hard disk. Specify the path then using -imagepath. Here is an example: Dismount-DiskImage -imagepath \u201cC:\\fso\\myisodisk.iso\u201d<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[639],"tags":[356,3,12,45],"class_list":["post-77471","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powertip","tag-powertip","tag-scripting-guy","tag-storage","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: \u00a0Learn how to use Windows PowerShell to dismount a virtual disk or ISO. \u00a0How can I use Windows PowerShell to dismount a virtual disk? \u00a0Use the Dismount-DiskImage cmdlet. It will dismount either an ISO or a virtual hard disk. Specify the path then using -imagepath. Here is an example: Dismount-DiskImage -imagepath \u201cC:\\fso\\myisodisk.iso\u201d<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/77471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=77471"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/77471\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=77471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=77471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=77471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}