What changing your PC name means and why you might do it
Your PC name is the identifier Windows uses to recognize your computer on a network and in system settings. It appears in File Explorer, when you connect to shared folders, and in network discovery. By default, Windows assigns a generic name like "DESKTOP-ABC1234", but you can change it to something meaningful—your own name, a project name, or anything else that helps you identify the machine.
You might change your PC name when you set up a new computer, when you inherit a machine from someone else, when you're part of a workplace network and need a standardized naming system, or straightforward because the default name is confusing. The change takes effect after you restart your computer.
Key Takeaways
- Your PC name is found in Settings under System > About, and you can change it directly from that same screen in Windows 10 and 11.
- The new name can be up to 63 characters long and can include letters, numbers, and hyphens, but not spaces or special characters like @, !, or #.
- After you change your PC name, you must restart your computer for the change to take effect.
- If you are on a workplace network, check with your IT department before changing your PC name, as it may conflict with naming policies.
- Changing your PC name does not affect your files, programs, or user account—it only changes how the computer identifies itself.
How to change your PC name in Windows 10
Open Settings by pressing the Windows key and typing "Settings", then select the Settings app. Navigate to System in the left sidebar, then select About. On the right side of the screen, you will see your current PC name listed under "Device name".
Click the Rename this PC button. A text box will appear with your current name highlighted. Delete the old name and type your new one. Click Next, then Restart now to explore the change when ready, or Restart later if you want to save your work first. Your computer will restart and the new name will be active.
How to change your PC name in Windows 11
Open Settings by pressing the Windows key and typing "Settings", then select the Settings app. Go to System in the left sidebar and select About. Look for the section labeled "Device name" and click the Rename button next to it.
A dialog box will open with your current PC name. Clear the field and type your new name, then click Next. Windows will show you a confirmation screen. Click Restart now to restart when ready and set up the new name, or Restart later to finish your current work first.
Rules for naming your PC
Your PC name can be up to 63 characters long. You can use uppercase and lowercase letters (A–Z, a–z), numbers (0–9), and hyphens (-). You cannot use spaces, periods, or special characters like @, !, #, $, %, &, or asterisks.
Windows is not case-sensitive for PC names, so "MyComputer" and "mycomputer" are treated as the same name. The name should be something you can remember and that makes sense in your context—if you have multiple computers, consider including your initials or a location identifier so you can tell them apart on a network.
What happens after you restart
When your computer restarts, the new name becomes active when ready. If you are on a home network or not connected to a network, the change is complete and you can continue working. If you are on a workplace network or a domain, the computer may need to re-authenticate with the network, which can take a few minutes.
You may notice that mapped network drives or shared folder shortcuts temporarily show an error until the network recognizes the new name. These usually reconnect automatically within a few minutes. If you have trouble accessing shared resources after renaming, restart your computer again or contact your network administrator.
If you are on a workplace network
Before you change your PC name on a work computer, check with your IT department or network administrator. Many organizations use automated naming systems or require PC names to follow a specific format (for example, "DEPT-USER-001"). Changing the name without permission can cause the computer to lose network access or conflict with security policies.
If your computer is joined to an Active Directory domain, you may not be able to change the name through Settings alone. Your IT department will need to rename the computer in Active Directory and rejoin it to the domain. Contact them before attempting any changes.
Changing your PC name from the command line
If the Settings method does not work or you prefer using the command line, you can rename your PC using PowerShell. Right-click the Start button and select Windows PowerShell (Admin) or Terminal (Admin). Type the command Rename-Computer -NewName "YourNewName", replacing "YourNewName" with your desired name, then press Enter.
PowerShell will ask you to confirm the restart. Type Y and press Enter to restart when ready, or type N to restart later. This method works the same way as the Settings approach and produces the same result—the new name takes effect after restart.
Frequently Asked Questions
Will changing my PC name affect my files or programs?
No. Changing your PC name only changes how the computer identifies itself on a network. Your files, programs, user account, and all settings remain exactly as they were. You will not lose anything.
Can I change my PC name back to the original?
Yes. Follow the same steps and enter your old name or any other name you prefer. You can change your PC name as many times as you want.
What should I do if the rename fails or the new name does not appear after restart?
Restart your computer again. Sometimes the change takes two restarts to fully explore. If the problem persists, try using the PowerShell method instead. If you are on a work network, contact your IT department—domain-joined computers may require administrator intervention to rename.
Can I use spaces or special characters in my PC name?
No. Windows only allows letters, numbers, and hyphens. If you try to use spaces or special characters, Windows will reject the name and ask you to enter a different one.
Do I need to change my user account name when I change my PC name?
No. Your PC name and your user account name are separate. Changing one does not affect the other. Your user account name stays the same unless you change it separately in Settings under Accounts.