Tuesday, September 13, 2011

Useful Net commands - Don`t need admin rights to run these.

I just love using Net commands to get list of users or password expiry dates for users.

Run the following command to get all the data for that specific user on domain

  • net user username /domain

Result :-

C:\Users\ijaved>net user ijaved /domainThe request will be processed at a domain controller for domain test.local.
User name                    ijaved
Full Name                    i Javed
Comment
User's comment
Country code                 000 (System Default)
Account active               Yes
Account expires              Never
Password last set            04/07/2011 9:14:48 AM
Password expires             02/10/2011 9:14:48 AM
Password changeable          04/07/2011 9:14:48 AM
Password required            Yes
User may change password     Yes
Workstations allowed         All
Logon script
User profile
Home directory
Last logon                   13/09/2011 5:03:59 PM
Logon hours allowed          All
Local Group Memberships
Global Group memberships     *Employees            *Domain Users
The command completed successfully.

  • net group /domain
This will list all the groups in your domain.

  • net group "groupname" /domain
This will list users inside specified group name.

* I love these commands because they do not require admin rights. You can run them as normal users and still get the useful information you probably didn`t have access to :)

Additional Commands can be found at : http://www.petri.co.il/list_all_users_and_groups_in_domain.htm

No comments:

Post a Comment