We can find the domain name of a computer by running the following commnads from command line.
systeminfo | findstr /B /C:"Domain"
We can find the logged in user’s domain by using the environment variable ‘USERDOMAIN’. Command for this is given below.
And last you can use the 'HOSTNAME' Command.
Thanks for visiting mswintips.com.
Return to Index Page
Copyright ©2018 CSN All Rights Reserved