Computers, Programming, Technology, Music, Literature

Get windows domain name from the command line

leave a 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"
Advertisements

Written by gmaran23

January 3, 2014 at 8:41 pm

Posted in Windows

Tagged with , , ,

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: