- Protect your backups by mounting and unmounting the drive USB with mountvol and scheduled tasks.
- SUBST creates drive letters from folders and can be made persistent via the registry.
- Windows mounts ISOs natively; PowerShell and apps expand features and compatibility.
When you work daily with discs, backups or ISO images, Create and unmount virtual drives in Windows becomes a key task to save time and protect your data. In this guide, you'll see, step by step, how to take advantage mountvol and subst, how to automate processes in Windows 7/10/11, and how to manage ISO images without installing anything or with specific tools.
In addition to the practical part, you will see real uses such as protect your copies against ransomware (unlinking the unit when not in use), Tricks with SUBST to shorten routes and skip impossible paths, and options for managed environments where IT assigns virtual drives to users from a console. All with clear examples and commands ready to copy.
What is a virtual drive and why you might care
In Windows, a virtual drive is a drive letter (for example, D:\ or E:\) which represents a physical volume, a disk image or even a system folderThis allows you to access data as if it were a real disk, without moving files or changing their location.
This concept is useful for several reasons: you can automate copies on a USB drive that is only mounted at the time of backup, mount ISO images to install software without an optical drive or create fake drive letters with SUBST to reach long routes that cause trouble.
Protect backups from ransomware with mountvol
A simple but effective tactic to harden your backup strategy is logically unlink the external drive when it is not in use. This way, if a malware scans the computer, it will not see the volume and will not be able to encrypt it. With mountvol You can mount the drive right at the scheduled backup time and unmount it when you're done.
The idea is to always work with the same drive and same USB port to keep the identifiers stable. It's also a good idea to check when logging in that no other drives are occupying the letter you need for the backup process.
Identify the volume (GUID) of your drive
First you need to get the volume ID and the letter assigned to it when mounted. This way you can assemble and disassemble the same volume whenever you want.
- Plug the USB drive into the chosen port.
- Open Start, type cmd and hit Enter.
- Run: mountvol and press Enter.
- Write down the volume/letter pairing. Example: \\?\Volume{75a50e5c-bd55-11e6-a704-85e65732cbfe}\ y E: \.
This identifier varies depending on the equipment and device; don't use the one in the example as is. Make sure to copy yours exactly, including the curly braces and the volume bar.
Create the .bat scripts for mounting and unmounting
You are going to use two small batch scripts: one for mount the USB volume in the desired letter and another for disassemble it when finished the backup. Place them in a simple path, for example C:\\Backup-Scripts.
Script to mount
Create a file called Mount unit.bat with this content, adapting the font and GUID to your case:
@echo off
mountvol E: \\?\Volume{75a50e5c-bd55-11e6-a704-85e65732cbfe}
Place the file in C:\\Backup-Scripts (or in the folder you prefer) and remember that the letter E: and the GUID are just an example that you will have to change for yours.
Script to disassemble
Create now Unmount drive.bat with this content, adjusting the font to the one you use for the backup:
@echo off
mountvol E: /p
This disassembly with /p unlinks the mount point and leaves the volume without a letter, thus ensuring that the system does not have it at hand unless you mount it again.
Schedule mounting and unmounting with Task Scheduler
Windows Task Scheduler allows you to run these tasks. .bat with elevated privileges, even if no one is logged in, which is great for automating nightly backups.
Task: Mount USB drive
- Opens Task Scheduler and choose Create Task.
- In General: give it a name (e.g. Mount USB Drive), check Run with highest privileges, Select Run whether the user is logged in or not and configure for your version of Windows.
- Click on Change user or group and choose a user with administrator role.
- In Triggers, create the exact schedule (days/times) you want mount the unit before the backup.
- In Actions, select the .bat Mount unit.bat that you saved.
Check that the user has permissions and that there are no policies preventing them. background tasks no session. This prevents silent failures.
Task: Unmount USB drive
- Repeat the process and create the task Unmount USB drive.
- Schedule the right trigger upon completion of the backup (leave a prudent margin) for the disassembly .bat to run.
- Set higher privileges and session independence just like in the previous task.
With this, your USB drive will only be visible during the backup and will be hidden from malware the rest of the time, adding a simple and effective layer of security.
SUBST: Creates a drive letter from a folder
The command SUBST maps a real system folder to a new drive letter. It's the opposite of the old one. JOIN (now defunct), which would paste a directory as part of another path. With SUBST, you can simplify eternal routes or rescue access to buried files where some utilities cannot reach.
Basic example: you want C:\\Virtual_Disk_D look like D:. Run in a symbol of the system with permissions:
subst D: C:\Disco_D_Virtual
To undo the mapping, use the modifier /d about the letter you created with SUBST:
subst D: /d
By default, these mappings are lost after a reboot. If you need this to be Persistent al Boot, you can rely on the Windows registry.
Make SUBST permanent (Windows Registry)
Opens regedit as administrator and create a string in the DOS Devices key with the correct NT path format. Make sure you don't make any mistakes with the backslashes.
- Key: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\DOS Devices
- Value name: la drive letter followed by a colon (for example, D:)
- Value data: \\??\\c:\\Virtual_Disk_D
Windows Registry Editor Version 5.00
"D:"="\\??\\c:\\Disco_D_Virtual"
Another simple alternative is to place a direct access in the Startup folder with the SUBST command to run at boot, or launch SUBST from a privileged command prompt.
Mount ISO images on Windows without third-party tools
From Windows 8 onwards, you can mount an ISO with a right click. You don't need any external programs unless you prefer extra features. If "Mount" doesn't appear when you right-click, check that the .ISO file type is associated with the Windows Explorer.
You can also mount and dismount from PowerShell, which is great for automating or working on servers without a graphical interface.
PowerShell: Mount and Unmount ISO
Open PowerShell (Win+R, type powershell) and run:
Mount-DiskImage -ImagePath C:\FILE.ISO
The system will create a virtual DVD drive with the mounted ISO. To unmount, repeat the process with:
Dismount-DiskImage -ImagePath C:\FILE.ISO
If you prefer to go through Explorer, you will see the new drive under “This PC > Devices and drives”; to expulsar, right click > Eject, just like you would with a USB.
Burn an ISO to CD/DVD from Windows
Windows 10 and 11 also allow burn ISO images without additional software. Right-click on the ISO > “Burn disc image”, choose the burner and select if you want verify the data upon completion. Keep in mind the size (700 MB for CDs; for Windows, a dual-layer DVD is sometimes required).
To explore the contents without mounting it, you can open the ISO with WinZip or WinRAR and extract files as if it were a ZIP, although remember that an ISO is not a compressed file, but a exact clone from an optical disc.
Key concepts about ISO files
An ISO file is a full picture from a CD, DVD, or Blu-ray that retains its file system. This makes it ideal for distributing OS or bulky installers without altering the original structure.
Compared to a .RAR, which is a ZIP file, an ISO replicates the source disc exactly. Hence its usefulness for testing, deployments and compatibility with tools that expect an optical format.
Mounting ISOs on macOS
En Mac You don't need to install anything: Find the ISO in the Finder, right click and choose “DiskImageMounter” to mount it. If you open “Disk Utility”, you can check or repair images, although to explore the content you just need to mount it.
Once mounted, you'll see a disk icon on your desktop; open it to browse, and when you're done, expels as you would with any external volume.
Create Windows installation media from an ISO
If you need to reinstall Windows on a PC with a reader, use the official tool from Microsoft to create a recent ISO. Make sure you have a connection, free space, and, if necessary, a Double layer dvd.
- Run the tool as administrator and accepts license.
- Choose “Create installation media for another PC.”
- Select language, edition and architecture (32/64 bit).
- Choose "ISO file” and download it.
- Burn it to DVD or create a bootable USB and starts from it.
If the computer does not boot from the media, enter the BIOS/UEFI and change the boot order to prioritize the external drive.
Popular applications for mounting and working with ISOs
There are many third-party utilities that extend what Windows does out of the box. Some are free or portable, ideal for carrying on a USB and using when something fails or you need specific formats.
- Daemon Tools (Lite): Mounts ISOs and other formats (MDX, MDS/MDF, APE, etc.), creates images and catalogs; free version with advertising or affordable paid version.
- AnyToISO: converts and extracts images to/from ISO in a simple way very easy; free with licensing options for advanced features or use on multiple computers.
- Poweriso: create, edit, extract, burn and mount; up to 23 virtual units; converts ISO<>BIN and supports 32/64 bit versions.
- Portable Alcohol: portable version to mount up to four units; Supports mds, ccd, img, sub, cue, bin, bwt, bwi, bws, cdi, nri, pdi.
- PeaZip: compressor open source that opens ISOs (and 200+ formats). Full or portable version, with the option to extract from the GUI or command line.
- WinCDEmu: free software that is integrated into the Explorer; mounts ISO, Open CUE files, NRG, MDF/MDS, IMG with one click and no reboots; multilingual.
- Virtual CloneDrive: Emulates virtual CD/DVD/Blu‑ray; supports up to 15 units; ISO, IMG, BIN, DVD, CCD, UDF formats; with assembly history.
- ISO Disk: Create virtual drivers (up to 20), mount ISOs locally or on LAN to share them; it also generates ISOs from CD/DVD.
- Rufus: very popular for creating Bootable USBs with Windows ISOs, Linux and more; fast and frequently updated.
- BurnAware Free: Free burning suite (with premium/pro trials); opens and burns ISOs, creates bootable discs; interface intuitive.
- ISO Workshop: Lightweight and easy to use; manages and converts to ISO, extracts content, burns CD/DVD/Blu-ray; ideal if you're looking for simplicity.
- OFSMount: mount ISOs in mode read only with letter assignment; extremely simple and free.
- ImDisk Toolkit: similar to OFSMount but more flexible: reading writing, device type and boot mount.
- Movavi Video Suite: a multimedia suite that also burns and manages ISOs, as well as playing and creating content; perhaps excesivo if you just want to ride.
- Active @ ISO Burner: free, basic and straightforward interface for burn ISOs on optical discs without complications.
If you work with Windows 7 or older computers where the “Mount” menu does not appear, these options get you out of trouble and add extra compatibility with non-standard formats.
A historical note: JOIN and the practical utility of SUBST
In the era of DOS, JOIN It allowed one directory to simulate being part of another, which was useful when the system disk was running low. JOIN is no longer there today, but SUBST is still alive and is the tool to create “fake letters” that point to folders.
This trick has saved more than one situation with impossible routes, utilities that choke with path too long or even to hide paths with attributes and special characters. SUBST gives you a Fast Track to reach the critical point without restructuring disks.
Other scenarios and limitations: Winlator, Wine and virtualization
In environments such as Winlator 7.0 (Wine compatibility layer in Android), mounting a virtual CD/DVD drive may fail because the drive does not exist. kernel driver that expect classic tools (UltraISO, WinCDEmu). You may see errors like “No virtual drive found” or “Failed to connect to mount manager.”
Even if you link an ISO in the container configuration, it may not be read as such within the session. mounted unitIn these cases, the solution is to use the software's own assemblies. host or resort to Wine-compatible tools, assuming that you won't have the same integration as in a Native Windows.
Centralized management in companies: assignment of virtual units
In organizations with hundreds of users, it is common to manage virtual drives from a console to assign them by user or groupThe typical flow consists of registering the unit, assigning it, and propagating the configuration to the agents.
- In the console: Go to Actions > Virtual Drives > List and add a new unit by defining its name, description, destination path and status (enabled or not).
- Go to Allocations > Share Allocation, open the user/group, choose the drive and assign it with a filter (e.g., Always true) and the desired letter.
Please note that the assignment may take a while depending on the update delay configured. If urgent, in the section of Agents You can force an update so that the change is immediate.
Passionate writer about the world of bytes and technology in general. I love sharing my knowledge through writing, and that's what I'll do on this blog, show you all the most interesting things about gadgets, software, hardware, tech trends, and more. My goal is to help you navigate the digital world in a simple and entertaining way.