Computers, Programming, Technology, Music, Literature

Get windows domain name from the command line

with one comment

Past couple of days, I have been hunting for the command that would give the domain that my computer is joined to. I have always been hitting the same page, and I am writing it here to no forget it.

Fyi, this command gives you the name of the domain that your computer is current joined to. That is, if you view the System Properties (sysdm.cpl), the Domain: value you see in there, that’s what this command gives you.

systeminfo | findstr /B /C:"Domain"

Written by gmaran23

January 3, 2014 at 8:41 pm

Posted in Windows

Tagged with , , ,

One Response

Subscribe to comments with RSS.

  1. Thanks a lot mate.

    This is a brilliant

    April 1, 2018 at 8:33 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: