Find domain name from command line

by admin on September 1, 2010

We can find the domain name of a computer by running the following commnad 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.

echo %userdomain%

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: