0X00000095

Fix ERROR_IS_SUBST_TARGET 0X00000095 on Windows 10/11

Hardware – Hard Drives Beginner 👁 9 views 📅 May 27, 2026

This error means you're trying to use a drive letter that's already a SUBST target. The fix is simple: remove the old SUBST assignment.

Cause #1: The Drive Letter Is Already a SUBST Target (Most Common)

Here's the situation. You open a command prompt, type something like SUBST X: C:\MyFolder, and you get back ERROR_IS_SUBST_TARGET (0X00000095). The error text in Windows reads: "The system cannot find the device specified" or sometimes just the code. Don't let the message fool you — the real problem is that the drive letter X: is already assigned as a SUBST target to some other folder.

I've seen this more times than I can count. Maybe you ran a batch file earlier that mapped the letter. Or you rebooted and forgot about a persistent SUBST from an old script. Either way, Windows won't let you reuse that letter until you remove the mapping.

Step-by-Step Fix

  1. Open a command prompt as Administrator. Click Start, type cmd, right-click Command Prompt, and select Run as administrator. You'll see the User Account Control prompt — click Yes.
  2. At the blinking cursor, type the following command and press Enter:
    SUBST

    This shows you every active SUBST mapping. You'll see something like:
    X:\: => C:\SomeOldFolder

    That's your culprit.
  3. Now remove the mapping. Type:
    SUBST X: /D

    Replace X: with whatever letter shows up. Press Enter. You shouldn't see any confirmation — the command just runs silently.
  4. Verify it's gone. Type SUBST again and hit Enter. The list should be blank. If you still see the mapping, double-check you're running as administrator. If you're not, the /D switch won't work.
  5. Now try your original SUBST command again. For example:
    SUBST X: C:\MyFolder

    This time it should complete without error. You can then access the folder by typing X: in File Explorer or the command prompt.

If the error still shows up after you removed the mapping, reboot your machine and try again. Sometimes the old SUBST persists in memory until a restart.

Cause #2: A Drive Letter Reserved by Windows or a Third-Party App

Less common, but I've seen it. Some drive letters are reserved by Windows itself. For example, A: and B: are traditionally reserved for floppy drives. Even if you don't have a floppy drive, Windows may still treat them as reserved. And certain backup or virtualization software (like VMware or Hyper-V) can squat on letters like Z: or M:.

How do you know? Run the SUBST command as above — if the list is blank and you still get 0X00000095, try a different drive letter. Pick something in the middle like D: or R: and see if the error goes away. If it does, you've got a reserved-letter issue.

Fix for Reserved Letters

  1. Open Disk Management. Press Win + X and select Disk Management.
  2. Look for any volumes that don't have a drive letter but are sitting on the letter you want. Right-click any volume that has no letter and choose Change Drive Letter and Paths. If you see your letter in use by a hidden volume, you'll need to assign it a different letter or remove it entirely.
  3. If nothing shows up there, the reservation is likely in the registry. Open Registry Editor (regedit). Navigate to:
    HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

    Look for any entry named \DosDevices\X: (replace X with your letter). If you see one, right-click and delete it. Warning: Be very careful here. Deleting the wrong entry can break drive mappings. Only delete the entry for the specific letter you're having trouble with.
  4. Reboot. After restart, try your SUBST command again. It should work now.

Cause #3: The Folder Path Doesn't Exist or Is Invalid

This one's a gotcha. You type SUBST X: C:\NonExistentFolder and Windows says: "The system cannot find the device specified" (which maps to 0X00000095). But the real reason is that C:\NonExistentFolder doesn't exist. Windows checks for the target folder's existence before it checks the drive letter. If the folder is missing, you get this misleading error.

I've helped users who swore the folder was there — turned out they'd typed C:\MyFolder when the folder was actually C:\MyOldFolder. Double-check your spelling and capitalization. Windows paths are case-insensitive but typos are not forgiving.

How to Check and Fix

  1. Open File Explorer and manually navigate to the folder path you're trying to use. Does it exist? If not, create it. Right-click in the parent folder, choose New > Folder, name it exactly as you typed in the SUBST command.
  2. Alternatively, in the command prompt, type:
    DIR C:\YourFolderPath

    If the folder exists, you'll see a list of files. If you get "File Not Found," you need to fix the path. Use the TAB key to autocomplete folder names — this reduces typos.
  3. Once the folder exists on disk, run your SUBST command again. It should succeed.

Quick-Reference Summary Table

Cause Symptom Fix
Drive letter already a SUBST target Error 0X00000095 when running SUBST Run SUBST to list, then SUBST X: /D to remove
Reserved/occupied drive letter SUBST list is blank but still error Try a different letter, check Disk Management, or delete registry entry
Target folder doesn't exist Error 0X00000095 with new SUBST Create the folder or correct the path

That covers it. For 9 out of 10 cases, Cause #1 is your problem. Run SUBST without arguments, see the old mapping, delete it with /D, and you're done. If that doesn't fix it, work through Causes #2 and #3. And if you're still stuck after all that, post your exact command and the output of SUBST in a forum — someone will spot what you're missing.

Was this solution helpful?