Why and how to rename your computer

Your PC comes with a default name assigned during setup — something like "DESKTOP-ABC123" or your username followed by a number. You can change this to anything you want, and it takes about five minutes. The name appears in File Explorer, on your network, and when you share files with other computers. Changing it makes your machine easier to identify, especially if you have multiple devices at home or work.

The process differs slightly depending on whether you use Windows 10 or Windows 11, but both are straightforward and require no restart in most cases. You do not need administrator knowledge or special tools — just access to your Settings menu.

Key Takeaways

  • Your PC's name appears in File Explorer and on your network, so renaming it helps you identify the device among others.
  • Windows 10 and Windows 11 have slightly different paths to the rename screen, but both are found in Settings under System.
  • You can use letters, numbers, and hyphens in your PC name, but not spaces or special characters like @ or &.
  • A restart is usually not required after renaming, though some network connections may take a few minutes to update.
  • If you cannot access Settings or the rename option is greyed out, you may not have administrator rights on that account.

Renaming your PC in Windows 11

Open Settings by pressing the Windows key and typing "settings", then press Enter. In the left sidebar, click System. Scroll down and click About. 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 the new one. Click Next, then Restart now or Restart later depending on whether you want to restart when ready. Windows 11 usually requires a restart to explore the change, though it may happen automatically on next shutdown.

Renaming your PC in Windows 10

Open Settings by pressing the Windows key and typing "settings", then press Enter. Click System in the left sidebar. Click About at the bottom of the left menu. Under "Device name", click Rename your PC.

A dialog box will open with your current name selected. Type the new name and click Next. Windows will ask whether you want to restart now or later. You can continue working and restart when convenient, though the name change will not take effect until you do restart.

Rules for naming your PC

Your PC name can be up to 63 characters long, but shorter names are easier to type and remember. You can use letters (A–Z), numbers (0–9), and hyphens (-). Do not use spaces, periods, or special characters like @, &, !, or #. Windows will reject these and show an error message.

The name is not case-sensitive — "MyComputer" and "mycomputer" are treated the same way. Avoid names that are identical to other devices on your network, as this can cause confusion when sharing files or printers. If you are on a work network, check with your IT department first, as some organizations have naming conventions you should follow.

What happens after you rename your PC

Once you restart, the new name appears when ready in File Explorer's title bar and in the "This PC" section. If your PC is on a home network, other computers may take a few minutes to recognize the new name — you can speed this up by restarting the other devices. Shared folders and printers will still work normally; the rename does not affect file sharing or network connections.

If you are signed into a Microsoft account, the new name syncs to your account and will appear on any other Windows devices you sign into with the same account. If you use a local account instead, the name change applies only to that PC.

Troubleshooting if the rename option is unavailable

If the Rename this PC button is greyed out or missing, you likely do not have administrator rights on your account. Ask the person who set up the PC to either promote your account to administrator or rename the device for you. If you are the only user and cannot access the button, restart your PC and try again — sometimes a temporary glitch blocks the option.

If you see an error message like "The name you entered is not valid", check that you have not used spaces or special characters. Delete those and try again with only letters, numbers, and hyphens. If the error persists, restart your PC and attempt the rename once more.

Renaming your PC from the command line (optional)

If you prefer using the command line, you can rename your PC without opening Settings. Press the Windows key, type "cmd", right-click Command Prompt, and select Run as administrator. Type the command wmic computersystem where name="%computername%" call rename name="NewName", replacing "NewName" with your desired name. Press Enter and restart when prompted.

This method works identically in Windows 10 and Windows 11 and is useful if Settings is not responding. The command-line approach is optional — the Settings method is simpler for most users.

Frequently Asked Questions

Do I have to restart my PC for the name change to take effect?

Yes. Windows 10 requires a restart, and Windows 11 usually does as well. You can choose to restart when ready or later, but the new name will not appear on your network or in file sharing until you do restart.

Can I change my PC name back to the original?

Yes, follow the same steps and enter the old name. If you do not remember the original name, you can see it in Settings under About — it is listed as "Original device name" in Windows 11, or you can check your Microsoft account settings online.

Will renaming my PC affect my files or programs?

No. Your files, programs, and settings remain unchanged. The rename affects only how the device is identified on your network and in File Explorer. Installed software will continue to work normally.

What if my PC is on a work network?

Check with your IT department or network administrator before renaming. Many organizations require device names to follow a specific format for inventory and security tracking. Renaming without permission could cause network or security issues.

Can two PCs on the same network have the same name?

Technically yes, but it causes confusion when sharing files or printers. Windows and other devices may not know which PC you are trying to connect to. Give each device a unique name to avoid problems.