{"id":75350,"date":"2024-06-02T11:44:11","date_gmt":"2024-06-02T06:14:11","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=75350"},"modified":"2024-06-02T11:55:10","modified_gmt":"2024-06-02T06:25:10","slug":"mount-iso-using-powershell","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/mount-iso-using-powershell\/","title":{"rendered":"How to Mount and Dismount an ISO Using PowerShell"},"content":{"rendered":"<p>Mounting an ISO assigns it a drive letter so you can browse its contents in File Explorer. ISO files can be <a href=\"https:\/\/www.winhelponline.com\/blog\/iso-img-burn-disk-image-mount-missing-right-click-menu\/\">mounted<\/a> using the &#8220;Mount&#8221; context menu. This article explains how to mount an ISO using PowerShell.<!--more--><\/p>\n<h2>Mount and Dismount ISO Using PowerShell<\/h2>\n<p>Suppose you want to mount the ISO file &#8220;E:\\Windows ISO\\Win11_23H2_Enterprise.iso&#8221;, open PowerShell and run the following command.<\/p>\n<h4>Example 1: Mount an ISO<\/h4>\n<p>To mount the ISO, run the following command:<\/p>\n<pre class=\"powershell\">Mount-DiskImage -ImagePath \"E:\\Windows ISO\\Win11_23H2_Enterprise.iso\"<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75354\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/mount-iso-powershell.png\" alt=\"mount iso powershell \" width=\"747\" height=\"329\" \/><\/p>\n<p>Open This PC and see if the ISO is mounted.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75352\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/mount-iso-powershell-drive-letter.png\" alt=\"mount iso powershell - this pc drive letter\" width=\"520\" height=\"166\" \/><\/p>\n<hr \/>\n<h4>Example 2: Mount an ISO and obtain its drive letter<\/h4>\n<p>To mount the ISO and get the assigned drive letter, run the following:<\/p>\n<pre class=\"powershell\">Mount-DiskImage -ImagePath \"E:\\Windows ISO\\Win11_23H2_Enterprise.iso\" | Get-Volume<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75351\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/mount-iso-powershell-get-driveletter.png\" alt=\"mount iso powershell get drive letter\" width=\"747\" height=\"170\" \/><\/p>\n<hr \/>\n<h4>Example 3: Mount an ISO and obtain its driver letter and other information<\/h4>\n<p>Run the two commands below to mount the ISO and get the drive letter and device information.<\/p>\n<pre class=\"powershell\">$info = Mount-DiskImage -ImagePath \"E:\\Windows ISO\\Win11_23H2_Enterprise.iso\"\n\nwrite-output ($info | get-volume) $info<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75355\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/mount-iso-powershell-get-driveletter-device-info.png\" alt=\"mount iso powershell get details and drive info\" width=\"747\" height=\"391\" \/><\/p>\n<hr \/>\n<h4>Example 4: Dismount an ISO Using ImagePath<\/h4>\n<p>To eject (dismount) an ISO by mentioning the ISO file name, run:<\/p>\n<pre class=\"powershell\">Dismount-DiskImage -ImagePath \"E:\\Windows ISO\\Win11_23H2_Enterprise.iso\"<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75353\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/dismount-iso-powershell.png\" alt=\"dismount iso powershell \" width=\"747\" height=\"331\" \/><\/p>\n<hr \/>\n<h4>Example 5: Dismount an ISO Using DevicePath<\/h4>\n<p>To eject (dismount) an ISO by mentioning the device path, run:<\/p>\n<pre class=\"powershell\">Dismount-DiskImage -DevicePath \"\\\\.\\CDROM0\"<\/pre>\n<p>(In this example, <strong>&#92;.\\CDROM0<\/strong> is the device path of the mounted ISO, as shown in the earlier output.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75358\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/dismount-iso-powershell-devicepath.png\" alt=\"dismount iso using devicepath\" width=\"747\" height=\"342\" \/><\/p>\n<hr \/>\n<h4>Example 6: Dismount multiple ISO drive letters pointing to the same ISO<\/h4>\n<p>If the same ISO was mounted multiple times using PowerShell, many drive letters would have been assigned. You may wonder how to dismount each ISO drive letter that points to the same image.<\/p>\n<p>For example, if you run the following command, you&#8217;ll see the list of ISO drive letters (and CD-ROM drive letters.)<\/p>\n<pre class=\"powershell\">Get-CimInstance Win32_LogicalDisk | ?{ $_.DriveType -eq 5}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75356\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/get-volume-iso-drive-letters-list.png\" alt=\"get cd-rom and iso drive letters\" width=\"747\" height=\"192\" \/><\/p>\n<p>As you can see in the above output, there are several ISO drive letters. So, run the Dismount command many times. Or run the Dismount command in the &#8220;foreach&#8221; loop, as below, so that every ISO drive letter (that points to the <strong>same ISO<\/strong> image) is removed.<\/p>\n<pre class=\"powershell\">$numitems = Get-CimInstance Win32_LogicalDisk | ?{ $_.DriveType -eq 5}\n\nforeach($item in $numitems){Dismount-DiskImage -ImagePath \"E:\\Windows ISO\\Win11_23H2_Enterprise.iso\"}<\/pre>\n<p>I hope the information in this article helped.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mounting an ISO assigns it a drive letter so you can browse its contents in File Explorer. ISO files can be mounted using the &#8220;Mount&#8221; context menu. This article explains how to mount an ISO using PowerShell.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8,869],"tags":[396],"class_list":["post-75350","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-powershell"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":75037,"url":"https:\/\/www.winhelponline.com\/blog\/install-chinese-simplified-language-offline\/","url_meta":{"origin":75350,"position":0},"title":"How to Install Chinese (Simplified, China) Language Offline","author":"Ramesh","date":"May 2, 2024","format":false,"excerpt":"When you open Optional Features and add the \"Chinese (Simplified, China)\" language pack and FOD, error 0x800F0950 occurs. In some cases, the download may stall completely. This error occurs because the system cannot connect to the Windows Update servers. Also, if you use the Install-Language PowerShell cmdlet to install \"Chinese\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"chinese simplified - settings - optional features","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/05\/simplified-chinese-settings.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/05\/simplified-chinese-settings.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/05\/simplified-chinese-settings.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":5759,"url":"https:\/\/www.winhelponline.com\/blog\/slipstream-windows-10-integrate-updates-setup-media-iso\/","url_meta":{"origin":75350,"position":1},"title":"Slipstream Windows 10\/11: Integrate Updates into ISO\/WIM","author":"Ramesh","date":"November 3, 2017","format":false,"excerpt":"Situations such as system file corruption and unexplained or erratic system behavior require you to repair or reinstall your Windows installation by running Setup.exe from a mounted Windows ISO or DVD\/USB flash drive. However, it's always possible that the current Windows installation's build or the Service Pack level is higher\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"slipstream windows 10 - ntlite","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/slipstream-ntlite-5.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/slipstream-ntlite-5.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/slipstream-ntlite-5.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/slipstream-ntlite-5.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":5500,"url":"https:\/\/www.winhelponline.com\/blog\/convert-esd-to-wim-dism-windows-10\/","url_meta":{"origin":75350,"position":2},"title":"How to Convert ESD to WIM (Install.ESD to Install.WIM) in Windows ISO","author":"Ramesh","date":"October 14, 2017","format":false,"excerpt":"Summary: In this article, we will see how to extract or convert install.esd to install.wim file format in the Windows 10 ISO image using DISM or other methods. The Windows Imaging Format (WIM) is a file-based disk image format developed by Microsoft to help deploy Windows operating system. The DISM\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"esd wim converter command script","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/esd-wim-converter-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/esd-wim-converter-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/esd-wim-converter-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/esd-wim-converter-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":5591,"url":"https:\/\/www.winhelponline.com\/blog\/windows-10-iso-direct-download-mct-useragent\/","url_meta":{"origin":75350,"position":3},"title":"How to Download Windows 10 or 11 ISO","author":"Ramesh","date":"October 19, 2017","format":false,"excerpt":"This article explains how to download the official Windows 10 or Windows 11 ISO from Microsoft servers using different methods. The Media Creation Tool downloads the latest version of Windows 10\/11 by default. You can also use Rufus or other third-party tools to accomplish the task. Using the methods described\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"windows 10 or 11 iso download portal","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/win10-iso-direct-download-link-768x546-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/win10-iso-direct-download-link-768x546-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/win10-iso-direct-download-link-768x546-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/win10-iso-direct-download-link-768x546-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1685,"url":"https:\/\/www.winhelponline.com\/blog\/iso-img-burn-disk-image-mount-missing-right-click-menu\/","url_meta":{"origin":75350,"position":4},"title":"Restore Missing &#8220;Mount&#8221; and &#8220;Burn Disk Image&#8221; Right-Click Options [ISO\/IMG]","author":"Ramesh","date":"February 25, 2016","format":false,"excerpt":"If the Mount and Burn disk image options are missing when you right-click an .ISO or .IMG file, it's caused by wrong file association settings. Here is how to restore the missing \"Burn disk image\" and \"Mount\" commands back in the right-click menu in Windows 10 and 11. Using Default\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"iso mount - open with explorer","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/02\/iso-mount-command-missing.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/02\/iso-mount-command-missing.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/02\/iso-mount-command-missing.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/02\/iso-mount-command-missing.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":5023,"url":"https:\/\/www.winhelponline.com\/blog\/iso-find-windows-build-version-edition-using-dism\/","url_meta":{"origin":75350,"position":5},"title":"How to Find Windows version, build and edition from ISO or DVD","author":"Ramesh","date":"December 28, 2016","format":false,"excerpt":"Windows 10 or Windows 11 ISO files downloaded from Microsoft will have descriptive names, such as en_windows_10_pro_10586_x64_dvd.iso and en_windows_10_pro_14393_x86_dvd.iso, depending upon the variant you downloaded.\u00a0The file name depicts the language, version, build edition, and the bitness of the Operating System contained in the ISO. Let's assume you have a copy\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"dism unmount image","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/dism-unmount-image-dir.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/dism-unmount-image-dir.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/dism-unmount-image-dir.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/75350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=75350"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/75350\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=75350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=75350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=75350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}