How to Change Your Computer Name in Windows 11

When you set up a new Windows 11 PC, Microsoft often assigns it a generic, machine-generated name like “DESKTOP-7X9B4KR” or “LAPTOP-AB3M2.” These cryptic names are meaningless when you are managing multiple devices on a home network, trying to identify your PC in shared network folders, connecting to it via Remote Desktop, or simply checking which device is linked to your Microsoft account. Renaming your computer to something descriptive — like “Living-Room-PC” or “Johns-Laptop” — makes managing your devices significantly easier.

When Renaming Your PC Actually Matters

  • Home Networks: When you open File Explorer and browse to “Network,” all computers on your local network are listed by their device name. A clear name lets you instantly identify the right PC when transferring files.
  • Remote Desktop: If you use Windows Remote Desktop to control one PC from another, you connect using the computer’s name. A descriptive name is far easier to remember than a random string.
  • Microsoft Account: On your Microsoft account page at account.microsoft.com, all your registered Windows devices are listed by name. Meaningful names help you manage licence keys, OneDrive storage, and security settings for the correct device.
  • Casting and Sharing: When casting your screen to a smart TV (via Miracast) or using Nearby Sharing, your PC announces itself by its device name.

How to Change Your PC Name in Windows 11

  1. Open the Settings app. The fastest method is to press Windows Key + I on your keyboard. You can also right-click the Start button and select “Settings” from the menu.
  2. In the left-hand sidebar, ensure you are on the System tab (it is usually selected by default when Settings opens).
  3. Scroll down the right side of the window and click on About at the bottom of the System list.
  4. Near the top of the About page, you will see your current computer name displayed. Click the blue Rename this PC button directly next to it.
  5. A blue dialog box will pop up with a text field. Type your desired new name.
    • Allowed characters: Letters (A–Z), numbers (0–9), and hyphens (-).
    • Not allowed: Spaces, underscores, and special characters like @, #, !, *, or periods.
    • Maximum length: 15 characters (a Windows limitation inherited from older networking protocols).
  6. Click Next.
  7. Windows will inform you that a restart is required for the name change to take effect across the system. Click Restart now to apply it immediately, or Restart later if you have unsaved work to finish first.

Verifying the Name Change

After your PC restarts, you can confirm the new name was applied correctly by:

  • Returning to Settings > System > About and checking the “Device name” field at the top.
  • Right-clicking the Start button and selecting Terminal (Admin), then typing the command hostname and pressing Enter. Your new computer name will be printed on screen.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.