Skip to main content

Windows Computer Alias for sharing

Windows natively supports NFS shares through the URI \\server-name \\ip.add.ress. Often though, you want to give the computer a different alias for example:
\\dev.relevantads.com
Or multiple aliases:
\\vss.relevantads.com, \\corp-file-server, \\Printer-Stations, etc.

Typically you would accomplish this you by changing the NetBIOS name to "dev", but instead, you can specifically define the aliases though the registry key:
HKEY_Local_Machine\System\CurrentControlSet\Services\LanmanServer\Parameters
Add Value: OptionalNames REG_SZ String: "Alias"
Make it a type REG_MULTI_SZ to support multiple aliases.

Moreover, you can support all aliases; i.e. tell Windows to accept any share request that comes to its IP. This is the registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
Data Type: DWORD
Value Name: DisableStrictNameChecking
Value: 1

A reboot is necessary (or possibly just restarting the Server | Workstation service) to allow the changes to take effect.

Lastly:
Don't forget that you'll also need File & Printer sharing enable, Firewall off or an exception for File sharing, and that the alias name must resolve either through DNS or a custom HOSTS declaration.

Comments