How to Change the Name of a Computer (Windows & Mac)

Your computer's name is more than a label — it's how your device identifies itself on networks, appears in Bluetooth menus, shows up in shared folders, and gets recognized by other devices. Changing it is straightforward, but the steps vary depending on your operating system, and the timing matters more than most people expect.

Why Your Computer Name Actually Matters

Most users set up their computer and never think about its name again. But that default name — something like DESKTOP-K7X29Q or MacBook-Pro-2 — quietly affects a few important things:

  • Network visibility: On home or office networks, your computer name is how other devices find yours when sharing files or printers.
  • Remote access: If you use Remote Desktop or SSH, the computer name is often part of the address you connect to.
  • Device management: In business environments, IT teams use computer names to track, manage, and push updates to specific machines.
  • Bluetooth and AirDrop: Your device name appears to nearby devices during pairing or file transfers.

A clear, consistent name — like Johns-Laptop or Studio-Workstation — makes all of this easier to manage.

How to Change Your Computer Name on Windows 🖥️

Windows gives you two main routes: through Settings (modern, straightforward) or through System Properties (the traditional method that's been around since Windows XP).

Method 1: Windows Settings (Windows 10 and 11)

  1. Open SettingsSystemAbout
  2. Click Rename this PC
  3. Enter your new name (letters, numbers, and hyphens only — no spaces or special characters)
  4. Click Next, then choose to Restart now or Restart later

The name change takes effect after the restart. Skipping the restart means the old name is still active on the network.

Method 2: System Properties

  1. Right-click This PC on the desktop or in File Explorer → select Properties
  2. Click Change settings next to the computer name
  3. In the Computer Name tab, click Change
  4. Enter the new name and click OK
  5. Restart when prompted

Method 3: Command Line (PowerShell)

For users comfortable with the terminal, this is faster:

Rename-Computer -NewName "YourNewName" -Restart 

Run PowerShell as Administrator. The -Restart flag reboots immediately, or remove it to restart manually later.

Windows naming rules: Names can be up to 15 characters, must start with a letter, and cannot contain spaces, periods, or most symbols. These limits come from NetBIOS naming conventions, which Windows still follows for backward compatibility.

How to Change Your Computer Name on macOS 🍎

Mac handles this slightly differently because your computer actually has three separate names that can be set independently:

Name TypeWhere It AppearsFound In
Computer NameAirDrop, Sharing preferencesSystem Settings → General → Sharing
Local HostnameLocal network (.local address)Same location, editable separately
Bonjour NameApple device discoveryDerived from Local Hostname

Steps to Rename on macOS Ventura and Later

  1. Open System SettingsGeneralSharing
  2. At the top, you'll see your Computer Name — click to edit it
  3. Below that, click Edit next to Local Hostname to change the .local address
  4. Close Settings — no restart required on macOS

On older macOS versions (Monterey and earlier), the path is System PreferencesSharing, and the fields appear at the top of that panel.

Unlike Windows, macOS name changes apply without a reboot, though some network services may take a few minutes to broadcast the updated name to other devices.

Variables That Affect How Smoothly This Goes

Changing a computer name is usually a two-minute task, but a few situations add complexity:

Domain-joined Windows machines: If your computer is connected to a Windows Active Directory domain (common in corporate environments), renaming requires domain admin credentials. The process still works, but you'll need IT permission or credentials, and the machine may need to re-authenticate with the domain after the restart.

Network shares and mapped drives: If other computers on your network access shared folders using your computer's name, those connections will break after a rename and need to be re-established with the new name.

Remote Desktop connections: Saved RDP connections using the old computer name or hostname will stop working and need to be updated.

macOS Local Hostname conflicts: If another Mac on the network has the same name, macOS auto-resolves the conflict by appending a number (e.g., Johns-Mac-2.local). This is automatic but can be confusing.

Case sensitivity: Windows computer names are not case-sensitive. macOS Local Hostnames technically are, though in practice most local network tools handle them either way.

What Happens After the Rename

On Windows, the restart is the handoff moment — until the machine reboots, the old name is still what other devices see. After restart, the new name propagates to the local network, usually within a few minutes as the machine re-broadcasts itself via mDNS (the protocol behind services like Bonjour and Windows network discovery).

On macOS, the update is faster but the same principle applies: devices that have recently cached your old name may take a few minutes to reflect the change.

Neither OS requires you to reinstall anything, change user accounts, or touch application settings. The rename is purely an identity change at the OS and network level — your files, programs, and preferences remain exactly as they were.

The Part That Depends on Your Setup

The mechanics of renaming are consistent across modern versions of Windows and macOS. What varies is the downstream impact — whether you're on a home network with two devices or a managed enterprise network with IT policies, whether you're using Remote Desktop regularly, whether other machines have bookmarked your old hostname, or whether your Mac sits on a network with naming conflicts already in play.

Understanding those dependencies in your own environment is what determines whether this is a 60-second change or something that needs a bit of coordination first.