Tuesday, March 22, 2011

List all Users and Groups in Domain from Command Prompt

NET USERS /DOMAIN        : This command will return the user accounts from the Primary Domain Controller (PDC) of the current domain
NET ACCOUNTS /DOMAIN     : This command will return the account policy information from the PDC of the current domain
NET CONFIG SERVER            : This command will return the server name, version of Windows, active network adapter information/MAC address, Server hidden status, Maximum Logged On Users, Maximum open files per session, Idle session time
NET CONFIG WORKSTATION            :This command will return the workstation name, user name, version of Windows, network adapter, network adapter information/MAC address, Logon domain, COM Open Timeout, COM Send Count, COM Send Timout
NET GROUP /DOMAIN           : This command will return the global groups on the PDC of the current domain.
NET LOCALGROUP     : This command will return the local groups on the local machine
NET VIEW /DOMAIN:DOMAINNAME  : This command will return the resources in the specified domain

No comments: