TechBuzzPro

How to Add Alternate Computer Name in Windows

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can add an alternate computer name in Windows using the NetBIOS over TCP/IP (NetBT) configuration through the Windows Registry. This allows a single Windows machine to respond to multiple network names, which is useful for legacy applications, network compatibility, or accessing the computer via different hostnames on a local network. Before proceeding, ensure you have administrative access, as editing the registry incorrectly can cause system instability.

What You'll Need

  • Administrator privileges on the Windows PC
  • Access to the Windows Registry Editor (regedit)
  • Network knowledge: the primary computer name and desired alternate name(s)
  • Optional: a backup of the current registry or system restore point

Step-by-Step

  1. Press Windows + R to open the Run dialog. Type regedit and press Enter. If prompted by User Account Control, click Yes to open Registry Editor.
  2. Navigate to the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
    If the Parameters key does not exist, you may need to create it, though it is typically present by default.
  3. Right-click on the right pane, select New > Multi-String Value.
  4. Name the new value OptionalNames. Be sure to spell it exactly as shown, including capitalization.
  5. Double-click the newly created OptionalNames value to open its editor.
  6. In the Value data field, enter each alternate computer name you want to add, one per line. For example:
    MYPC-ALT1
    BACKUP-SERVER
    Do not include spaces or invalid characters (use letters, numbers, and hyphens only).
  7. Click OK to save the changes.
  8. Close Registry Editor.
  9. Restart the computer to apply the changes. After reboot, the system will respond to both the original computer name and the alternate names listed.
  10. To verify, open Command Prompt and type ping <alternate-name> (replace with your chosen name). If configured correctly, the ping should resolve and respond.

Common Mistakes

  • Spelling the registry value incorrectly (e.g., OptionalName instead of OptionalNames).
  • Using invalid characters in the alternate names, such as underscores, spaces, or periods.
  • Forgetting to restart the computer—changes do not take effect until reboot.
  • Adding too many alternate names, which can cause network confusion or slow name resolution.
  • Editing the wrong registry hive (e.g., editing HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE).

Tips

  • Keep alternate names short, descriptive, and consistent with your network naming convention.
  • Use this feature primarily for internal networks—alternate names are not accessible over the internet unless DNS is manually configured.
  • Limit the number of alternate names to three or fewer to avoid performance issues.
  • After setup, test connectivity from another device on the same network using the alternate name.
  • Document all alternate names used to avoid conflicts or duplication in the future.

Troubleshooting

If the alternate name does not respond after reboot:

  • Verify the registry path and value name are correct. Reopen regedit and double-check OptionalNames exists under LanmanServer\Parameters.
  • Ensure the alternate name does not conflict with another device on the network. Use ping or nbtstat -n to check name availability.
  • Check that NetBIOS over TCP/IP is enabled. Go to Network Adapter settings > Internet Protocol Version 4 (TCP/IPv4) > Advanced > WINS tab, and ensure NetBIOS is set to Default or Enabled.
  • Try flushing the network cache: open Command Prompt as admin and run ipconfig /flushdns and nbtstat -R.
  • If the system still does not respond, temporarily disable the firewall to test if it is blocking NetBIOS traffic (port 137-139). Re-enable it afterward.
  • If problems persist, revert the change by deleting the OptionalNames value and rebooting. Restore from a backup if available.

Frequently Asked Questions

Can I use DNS instead of the registry method?

Yes, but only if you control the local DNS server (e.g., via a router or domain controller). The registry method works without DNS and is ideal for workgroup networks.

Does this work on all Windows versions?

Yes, the method works on Windows 10, Windows 11, and Windows Server editions. It may not be supported on Home editions with certain network configurations.

Can I access shared folders using the alternate name?

Yes. Once configured, you can access shared folders via \\<alternate-name> in File Explorer, just like the primary name.

Is this the same as adding a DNS alias?

No. This method uses NetBIOS name resolution, not DNS. It operates at the local network level and does not require DNS server changes.

Can I remove an alternate name later?

Yes. Open regedit, go to the OptionalNames value, edit it, and remove the unwanted name. Reboot to apply changes.

Will this affect domain-joined computers?

Use caution on domain-joined PCs. Alternate names may conflict with domain policies or cause authentication issues. Test in a non-production environment first.