Microsoft Windows Error Code 0xC0000122: How to Fix It

Medium 20-30 minutes Medium Severity Verified June 2026
Error Code
0xC0000122
Brand
Microsoft Windows
Product Type
operating_system
Severity
Medium
DIY Difficulty
Medium
Estimated Fix Time
20-30 minutes
Error code 0xC0000122, also known as STATUS_INVALID_COMPUTER_NAME, indicates that Windows cannot recognize your computer's name. This often occurs after a name change or network configuration issue, preventing you from logging in or accessing certain features.
Ad

Tools You'll Need

How to Fix Error Code 0xC0000122

  1. Boot into Safe Mode

  2. Open System Properties

  3. Change Computer Name

    Ensure the new name is unique on your network and follows Windows naming rules.
  4. Check Hosts File for Conflicts

    Editing the hosts file incorrectly can cause network issues. Backup the file first.
  5. Run System File Checker

    Do not interrupt the scan; it may take up to 30 minutes.
Ad

When to Call a Professional

If these steps fail, the issue may be deeper (e.g., corrupted registry). Contact Microsoft Support or a professional technician for advanced troubleshooting.

Frequently Asked Questions

What causes error 0xC0000122 in Windows?
This error occurs when the computer name is invalid or conflicts with network settings, often after a name change or system update.
Can I fix error 0xC0000122 without Safe Mode?
If you can't boot normally, Safe Mode is necessary. However, if you can access the desktop, you can follow the same steps without Safe Mode.
Will resetting Windows fix error 0xC0000122?
Resetting Windows may fix the error, but it's a last resort. Try the steps above first as they are less invasive.
Is error 0xC0000122 related to malware?
Rarely, malware can corrupt system files leading to this error. Running a malware scan is a good precaution.
Do I need to reinstall Windows to fix this error?
Reinstalling usually resolves the issue, but it's excessive. The manual steps above work in most cases.