
I was searching the other day for a way to print out the fully qualified domain name of a machine I was working on and finally found this solution: C:\> echo %COMPUTERNAME%.%USERDNSDOMAIN% which returns: SMGR.TSFACTORY.COM for that machine. Wonderful. This may fail however if your users are in a different domain than the machine. %USERDNSDOMAIN% […]