How to rename PC on Windows 11

Windows 11 lets you change the computer name in multiple ways, and here's how.

Windows 11 rename PC
Windows 11 rename PC
  • To change the PC name on Windows 11, open Settings > System > About, click “Rename this PC,” confirm a new computer name, and restart the computer.
  • On Command Prompt (admin), run the “hostname” command to check the current name and run the “WMIC computersystem where caption=’CURRENT-PC-NAME’ rename ‘NEWPCNAME'” to rename the device, and restart.
  • Alternatively, you can use Nearby Sharing settings, Control Panel, and PowerShell to rename your PC on Windows 11.

On Windows 11, the ability to change the PC name is not only about personalization. When you have multiple devices (such as desktops and laptops), and if you do not keep them organized, it will be challenging to find them in the network, inventory them, and use certain features.

For instance, most people now use a Microsoft account to sign in to Windows 11. This type of account allows you to sign in to your devices with the same credentials. In addition, it helps to keep an organized inventory (in your Microsoft account) and use features, such as finding your device and activation after a hardware change. If you don’t assign a descriptive computer name, the system will assign a random name, making it more difficult to organize and use the different features.

In this guide, I will teach you the steps to change the name of a Windows 11 laptop, desktop, or tablet using the Settings app, Control Panel, Command Prompt, and PowerShell. The option from Nearby Sharing is still in the preview, but it’s expected to roll out with the next feature drop update.

Rename PC on Windows 11

To rename PC on Windows 11, use these steps:

  1. Open Settings on Windows 11.

  2. Click on System.

    Quick tip: The “Home” and “System” pages also include a quick “Rename” button at the top of the page.
  3. Click the About tab.

  4. Click the “Rename this PC” button under the “Device specifications” section.

    Rename This PC option

  5. Confirm the new name for the computer.

    Windows 11 change PC name

    Quick tip: Avoid any special characters, keep it short (less than 15 characters is always recommended), and don’t leave a space when using multiple words.
  6. Click the Next button.

  7. Click the Restart now button.

Once you complete the steps, the computer will restart to apply the new name on Windows 11.

Rename PC from Control Panel

To rename the computer name with Control Panel on Windows 11, use these steps:

  1. Open Control Panel.

  2. Click on System and Security.

  3. Under the “System” section, click the “Allow remote access” option.

    System options

  4. Click the Computer Name tab.

  5. Click the Change button.

    System properties change option

  6. Confirm a new name for your computer.

    Rename computer on WIndows 11

  7. Click the OK button.

  8. Click the OK button again.

  9. Click the Close button.

  10. Click the Restart Now button.

After you complete the steps, the computer will reboot, and upon restart, it will start using the new name.

Rename PC from Command Prompt

To change your PC name on Windows 11 from Command Prompt, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to determine the current device name and press Enter:

    hostname
  4. Type the following command to rename the Windows 11 PC and press Enter:

    WMIC computersystem where caption='CURRENT-PC-NAME' rename 'NEWPCNAME'

    Windows 11 rename PC with command

    In the command, update your information, and use single quotation marks when specifying the current and new names.[/tbx]

  5. Type the following command to restart the device and press Enter:

    shutdown -r -t 00

Once you complete the steps, the changes will apply after restarting the Windows 11 computer.

Rename PC from PowerShell

To change a Windows 11 PC name with PowerShell, use these steps:

  1. Open Start.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. Type the following command to rename the PC name on Windows 11 and press Enter:

    Rename-Computer -NewName "NEW-PC-NAME"

    PowerShell rename computer command

  4. Type the following command to restart the device and press Enter:

    Restart-Computer

After you complete the steps, Windows 11 will restart the system to apply the new name.

Rename PC from Nearby Sharing (preview)

To rename PC from the Nearby Sharing page, use these steps:

  1. Open Settings.

  2. Click on System.

  3. Click the Nearby Sharing page.

  4. Click the “Rename” button in the “Your device is discoverable as User’s PC” setting.

    Nearby Sharing rename option

  5. Confirm the new name for the computer.

    Rename PC from Nearby Sharing

  6. Click the Next button.

  7. Click the Restart now button.

Once you complete the steps, the system will apply the new name on Windows 11.

Update January 18, 2024: These instructions have been updated to ensure accuracy and add new steps from the Nearby Sharing page.

About the author

Mauro Huculak is a Windows expert and the Editor-in-Chief who started Pureinfotech in 2010 as an independent online publication. He is also been a Windows Central contributor for nearly a decade. Mauro has over 12 years of experience writing comprehensive guides and creating professional videos about Windows, software, and related technologies, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me.