How to Change Your Computer Name in Windows 10 and 11
In this article
Yes, you can change the name of your computer in both Windows 10 and Windows 11. This process updates the device's identity on your local network and in shared folders without affecting your personal files or installed programs. The primary reason users do this is to make their device easier to identify when connecting to Wi-Fi networks, sharing printers, or accessing files from other computers.
What You'll Need
- A Windows PC running Windows 10 or Windows 11
- Administrator privileges (you must be logged into an account with admin rights)
- A new name that does not contain special characters like / \ * ? " < > | or spaces at the start/end
Step-by-Step
- Open Settings: Click the Start button (Windows icon) and select the gear icon for Settings, or press
Windows Key + Ion your keyboard. - Navigate to System Info: In Windows 11, click System in the left sidebar, then scroll down and click Device specifications. In Windows 10, go to System, then select About from the left menu. Note: Menu labels may differ slightly depending on your Windows version.
- Access Renaming Options: Look for a link labeled Rename this PC (Windows 11) or Rename this PC (advanced) (Windows 10). Click it.
- Initiate the Change: A warning dialog will appear stating that a restart is required. Click Restart now to proceed. If you choose to restart later, the name change will not take effect until you do.
- Enter New Name: After the computer restarts, log back in. Return to the same About page. You should see a prompt to enter a new name. Type your desired computer name. Ensure it is unique on your network to avoid conflicts.
- Confirm and Restart: Click Next and then Restart Now again to finalize the change. Your computer will shut down and come back up with the new identity.
Common Mistakes
The most frequent error is choosing a name with special characters. Windows rejects names containing slashes, asterisks, question marks, quotes, angle brackets, pipes, or backslashes. Additionally, names cannot end with a period or contain consecutive periods. Another common mistake is using a name already taken by another device on the same network, which causes connection confusion. Finally, forgetting to restart the computer after entering the new name means the old name remains active until the next reboot.
Tips
Keep the name short and descriptive. Using formats like Office-PC-01 or LivingRoom-Main helps distinguish devices in large networks. Avoid using personal information like your full name or address for privacy reasons. If you are part of a work domain, check with your IT department before changing the name, as domain policies may restrict renaming or require specific naming conventions. Always use alphanumeric characters (A-Z, 0-9) and hyphens for maximum compatibility.
Troubleshooting
If the Rename this PC option is grayed out or unclickable, your account likely lacks administrator privileges. Log in with an admin account to enable the feature. If the name change fails during restart, ensure no critical applications are preventing shutdown. Check for pending Windows Updates, as installing them often requires a restart that might interfere with the rename process. If the new name does not appear on the network after restarting, try flushing the DNS cache by opening Command Prompt as administrator and typing ipconfig /flushdns, then pressing Enter. Also, verify that your network discovery settings are enabled in Network and Sharing Center.
Frequently Asked Questions
Does changing the computer name delete my files?
No. Changing the name only affects how the computer is identified on the network. All your documents, photos, apps, and settings remain exactly as they were.
Can I use spaces in my computer name?
While Windows allows spaces in some contexts, it is highly recommended to avoid them. Use hyphens instead (e.g., My-PC) to prevent issues with network sharing and command-line tools.
Will this change affect my Microsoft Account?
No. Your Microsoft Account email address and profile name are separate from the local device name. Other people seeing your device on the network will see the new PC name, not your email.
How long does it take for the new name to show up on other devices?
It usually takes a few minutes for other devices to update their network lists. If it does not appear immediately, restart the other devices or wait for the network browser cache to refresh.
Can I change the name back if I don't like it?
Yes. You can repeat these steps at any time to assign a new name. There is no limit to how many times you can rename your computer.
Is there a command-line way to do this?
Yes. Open Command Prompt as Administrator and type wmic computersystem where name="current_name" call rename="new_name", replacing the placeholders. However, the Settings method is safer and more user-friendly for most people.