Cause 1: Drive or folder name has a forbidden character
The most common reason you see 0X000008F6 is you tried to rename a drive (like a USB stick) or a folder to something with characters Windows hates. What's actually happening here is Windows checks every name you give a device—USB drives, external hard drives, network drives—against a list of banned characters. If it finds one, it throws this error.
The banned characters are: \ / : * ? " < > |. Also can't use a period at the end of a name. Windows 10 and 11 both enforce these. So if you named your USB stick "My:Drive" or "Test?Folder", you'll get error 0X000008F6.
Fix: Rename with clean characters
- Open File Explorer (Win+E).
- Right-click the drive or folder showing the error, pick Rename.
- Type a new name using only letters, numbers, spaces, hyphens, underscores.
- Press Enter. Test if the error is gone.
If the rename fails, open Command Prompt as admin and run: label C: MyCleanName (replace C: with your drive letter). This bypasses the GUI rename check.
The reason this works: the label command uses a different validation path that's more forgiving—it only blocks the core banned characters.
Cause 2: Network share name is too long or has trailing spaces
Second most common cause is a network share name (like \Server\SharedFolder) that's too long. Windows has a 260-character limit for paths in most cases, but for device names it's stricter: 32 characters maximum. Also trailing spaces get silently converted to something weird.
I've seen this on Windows 10 version 22H2 and Windows 11 23H2. Someone maps a network drive, types a share name like "Marketing Files 2024 ", and the trailing space triggers 0X000008F6.
Fix: Shorten and trim spaces
- On the computer sharing the folder (the server), go to that folder.
- Right-click > Properties > Sharing tab > Advanced Sharing.
- Click Permissions, note the share name shown. If it has trailing spaces, fix it.
- Change the share name to something under 32 characters, no trailing spaces.
- On your client machine, disconnect the mapped drive:
net use /delete *in admin CMD. - Re-map it with the new short name:
net use Z: \\Server\ShortName.
What's happening: when you access a network share, Windows constructs a device path under the hood. Long names or spaces cause it to break the internal buffer. Short names avoid that.
Cause 3: Corrupted registry entry for device name
Third cause is rarer but trickier: a corrupted entry in the Windows Registry under HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices. This stores all assigned drive letters. If an entry gets damaged (bad unplug, crash during rename), you get error 0X000008F6 when Windows tries to read it.
I saw this on a Windows 10 machine where someone yanked a USB 3.0 drive without safely removing. The registry kept a half-written record.
Fix: Delete the bad registry entry
- Press Win+R, type
regedit, hit Enter. Yes to UAC. - Go to:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices - Look for entries with your drive letter, like
\DosDevices\E:. They have a binary value. - If you see one with garbage data (all zeros or weird characters), right-click it, Delete.
- Close regedit, restart the computer.
- After restart, plug the device in again. Windows will create a fresh entry.
Be careful here: deleting the wrong entry can mess up other drives. Only delete the one matching the problematic device. Back up the key first (right-click MountedDevices > Export) if you're nervous.
Case-specific triggers
- USB stick formatted as exFAT being renamed in File Explorer to something including a colon (like "Backup:2024").
- Network share mapped with a name ending with a space from a Linux Samba server—Samba allows it, Windows doesn't.
- Virtual drive created by software like Virtual CloneDrive where the .iso file name has brackets or angle brackets.
Quick-reference summary
| Cause | Symptoms | Fix |
|---|---|---|
| Banned characters in name | Error when renaming drive/folder | Use only letters, numbers, hyphens, underscores |
| Long or spacey network share name | Error when mapping network drive | Shorten share name, remove trailing spaces |
| Corrupt Registry entry | Error after unplug without safe remove | Delete bad entry under MountedDevices |
If none of these fix it, try running sfc /scannow in admin CMD. Corrupted system files can also throw this error. But 95% of the time it's one of the three above. Good luck.