Wednesday, 26 May 2010

Quick and easy query to Active Directory

For ages I have needed a means for finding out details of the person behind a windows login as the login is just an employee number.  I had means to find these details but it was always cumbersome – not to mention slow.

The following DOS command queries Active Directory for details about the given login.

NET USER /DOMAIN <Login>

Another handy DOS command queries a who is a member of the given group.

NET GROUP /DOMAIN <Group>

Just a simple little code snippet that make my life a little easier.. :)

No comments:

Post a comment