|. Also ensure the name doesn't end with a period or space. Windows will not allow these, but sometimes files from other systems have them. Community-verified fix with 0+ upvotes."> |. Also ensure the name doesn't end with a period or space. Windows will not allow these, but sometimes files from other systems have them. Community-verified fix with 0+ upvotes.">
Medium Operating Systems ✓ Solution Verified by Community (0+ upvotes)

How to fix error error-invalid-name in Windows 11

ERROR_INVALID_NAME = 123

65% success rate
👥 0+ users verified
📅 Updated: 2026-08-12
⏱️ 10 min read
Fix based on community reports and expert analysis. Last verified: 2026-08-12 · How we verify fixes
Error Codeerror-invalid-name
Affected SystemWindows 11 (Microsoft)
DifficultyMedium
Estimated Time10 min

Solution Steps

  1. 1 First, identify the exact file or path that triggers the error. Look at the error message—it usually includes the name. Open File Explorer (Windows key + E) and navigate to that location. Check if the file exists. If it doesn't, you may need to restore it from the Recycle Bin or a backup.
  2. 2 If the file exists, check its name for illegal characters. Right-click the file, select 'Rename', and remove any of these characters: / \ : * ? " < > |. Also ensure the name doesn't end with a period or space. Windows will not allow these, but sometimes files from other systems have them.
  3. 3 If the error is related to a network path, verify the path is correct. For example, if you're trying to access \\server\share, make sure the server name and share name are spelled correctly. You can test by typing the path into File Explorer's address bar.
  4. 4 If the error occurs when running a program, the program might be looking for a file in a specific location. Reinstall the program to restore missing files. Press Windows key + I, go to Apps → Installed apps, find the program, and uninstall it. Then download and install the latest version.
  5. 5 If the error is from a command-line tool, check for typos in the command. For example, if you typed 'cd C:\Users\John' but the folder is 'C:\Users\JohnDoe', you'll get an invalid name error. Use Tab key to auto-complete paths.

🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:

🔧 Still having issues?

Describe your exact problem to Error Buddy and get a personalized fix in seconds.

🛠️ Try Error Buddy — It's Free