JSI Tip 7374. How do I allow a computer to be accessed using an alias, instead of the computer name?

Jerold Schulman

October 26, 2003

2 Min Read
ITPro Today logo in a gray background | ITPro Today


Marty List brings us NetAlias.zip to display, add or remove NetBIOS names for the Server service.

The ReadMe.txt file contains:

Network Alias [Version 1.00]Displays, adds or removes NetBIOS names for the Server service.  This allows a computer to be accessed using an alias, or a name other than the computer name.The Server service will also announce this alias to the browse list where it will be displayed in apps such as My Network Places and the NET VIEW command.After a system restart, this alias will no longer exist.  To make the alias persistent, this tool would need to be scheduled to execute at system startup.This alias will only be available as a UNC path (\servershare), tools like ping and nslookup will not be able to resolve it.The syntax of this command is:NetAlias [/ALIAS:NEWNAME] [/DOMAIN:NAME] [/DELETE] [/Y] [\COMPUTERNAME] /ALIAS: Allows you to specify a new name to add (or delete).  A new alias can be up to 15 characters. Names with spaces must be enclosed in "double quotes". /DOMAIN: Optional, rarely needed.  Allows you to specify the domain/workgroup that the new alias will be announced to. Ignored if /ALIAS is not specified. /DELETE Allows you to delete the specified alias. /Y Allows you make changes without being prompted. \COMPUTERNAME Allows you to manage the names on a remote system.A Windows NT based operating system is required (2003/XP/2000/NT), and the user must be a member of the Administrators or Server Operators group.  The maximum number of names that can be added will vary between 128 and 1024, depending on the length of the names.  The new alias should be available on the local subnet immediately, but may not be available on remote subnets or appear in browse lists for up to 30 minutes, depending on the complexity of network.  Likewise, deleted names are not immediately removed from the browse list. For more information, see Microsoft KB articles 150800 and 102878.An argument of /? or -? displays this syntax and always returns 1.A successful completion will return 0.Copyright 2003  Marty List==================================================================System Requirements:Windows Server 2003; Windows XP; Windows 2000; Windows NTNetBIOS must be enabled, and the Server service must be runningFile and Printer Sharing for Microsoft Networks must be bound to each NICRevision History:1.00 10/02/2003Initial release.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like