To see what users present in the system:
net user
To see local groups in the system:
net localgroup
To see domain groups. This should be run on a domain controller:
net group
To see the details of a user along with his/her group membership:
net user mahim
To see who are the members of a particular group (local machine):
net localgroup "administrators" (These are not case sensitive. You can use administrators or Administrators. Both will give you same result.
To see who are the members of a particular group (domain machine):
net group "domain admins"
Create a local user:
net user localuser1 MyP@ssw0rd /add
Create a domain user:
net user domainuser1 MyP@ssw0rd /add /domain
Add the local user to local admin group:
net localgroup Administrators localuser1 /add
Add the user to domain admin group:
net group "Domain Admins" domainuser1 /add /domain
Avi
Comments
Post a Comment