The quickest way to rename your Windows 11 computer
You can change your computer name in Windows 11 through the Settings app in about two minutes. Open Settings, go to System > About, select "Rename this PC" near the top of the page, type your new name, and restart your computer. The new name takes effect after the restart.
Your computer name is what appears in File Explorer, on your network, and when you connect to shared folders or printers. Changing it does not affect your files, accounts, or installed programs — it is purely a label that identifies your machine to Windows and other devices on your network.
Key Takeaways
- The Settings app method (System > About > Rename this PC) is the standard way and requires no restart until after you confirm the change.
- Computer names can be up to 63 characters long but cannot contain spaces or most special characters — stick to letters, numbers, and hyphens.
- You must have administrator rights on your account to rename the computer.
- After renaming, your computer must restart before the change takes effect on your network and in shared folder locations.
Step-by-step: Using the Settings app
Open the Settings app by pressing Windows key + I, or by right-clicking the Start button and selecting Settings. Once Settings is open, select System from the left sidebar, then scroll down and click About.
Near the top of the About page, you will see your current computer name followed by a blue "Rename this PC" button. Click it. 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 click Restart later if you want to finish what you are doing first.
Your computer will restart, and the new name will be active when it boots back up. You may notice the change reflected in File Explorer, network locations, and any shared printers or folders you access.
What characters and lengths are allowed
Windows 11 allows computer names up to 63 characters long, but you cannot use spaces, tabs, or these special characters: / \ : * ? " < > |. You can use letters (uppercase and lowercase), numbers, and hyphens. Most people keep names short and straightforward — something like "Laptop-Home" or "Office-Desktop" is clearer than a long string.
If you try to use a forbidden character, Windows will show an error message and ask you to try again. Hyphens are fine and often make multi-word names easier to read without using spaces.
Using Command Prompt or PowerShell if Settings does not work
If the Settings app method does not work or you prefer the command line, you can rename your computer using Command Prompt or PowerShell. Right-click the Start button, select Terminal (Admin) or Command Prompt (Admin), and run this command: netdom renamecomputer %computername% /newname:YourNewName. Replace "YourNewName" with the name you want.
After you run the command, you will be prompted to restart. Type Y and press Enter to restart when ready, or close the window and restart manually later. This method works the same way as Settings — the change takes effect only after restart.
If you are not comfortable with the command line, stick with Settings. Both methods do the same thing; Settings is just more visual.
Why you might want to rename your computer
A descriptive computer name makes it easier to find your machine on a network, especially if you have multiple computers at home or in an office. Instead of "DESKTOP-ABC123" (the default Windows name), something like "Living-Room-PC" or "Bedroom-Laptop" tells you and others which device is which when connecting to shared folders, printers, or remote access tools.
If you share files over your home network or use remote desktop to access your computer from elsewhere, a clear name prevents confusion. It also shows up in your router's device list, making it easier to manage your network.
What does not change when you rename your computer
Renaming your computer does not affect your user accounts, passwords, files, or installed programs. Your desktop, documents, downloads, and all your data stay exactly where they are. You do not need to re-enter passwords or log in differently — your accounts work the same way.
Network drives and shared printers may briefly lose connection during the restart, but they reconnect automatically once your computer comes back online. If you have mapped network drives (drives you access through File Explorer), they may show a brief error until the restart completes, then reconnect on their own.
Troubleshooting if the rename fails
If you see an error when trying to rename, the most common cause is that you do not have administrator rights on your account. Check with whoever manages your computer — you may need them to approve the change or give you admin access first.
Another reason the rename might fail is if your computer is part of a workplace domain (Active Directory). Domain-joined computers often cannot be renamed without IT support, because the domain controls the name. If you are on a work computer, contact your IT department before attempting to rename.
If you are on a personal computer and still see an error, restart your computer and try again. Sometimes a temporary glitch prevents the change from going through the first time.
Frequently Asked Questions
Do I need to restart my computer right away after renaming it?
Yes, the new name does not take effect until after a restart. You can choose to restart when ready or later, but the change will not show up on your network or in shared locations until the restart is complete.
Can I change my computer name back to what it was before?
Yes, the process is identical. Go back to Settings > System > About, click "Rename this PC", type your old name, and restart. There is no limit to how many times you can rename your computer.
Will changing my computer name affect my Wi-Fi or internet connection?
No, your internet connection is not affected. Your computer name is separate from your network settings. You will stay connected to your Wi-Fi network, and your internet speed and connection will work the same way.
What if my computer name has spaces in it already?
Windows may have allowed spaces in older versions, but Windows 11 does not permit them in new names. If you are renaming a computer with spaces in the old name, you will need to remove them when you type the new name — use hyphens instead.
Can I see my computer name before I rename it?
Yes, it is displayed at the top of the About page in Settings, and also in File Explorer under "This PC". You can also right-click "This PC" on your desktop and select Properties to see your current name.