Access your domain contoller and type the following format to disable your user :
dsmod user "cn=Joe Bloggs, ou=IT Admins, dc= Your Domain name , dc=com" -disabled yes
Showing posts with label domain controller. Show all posts
Showing posts with label domain controller. Show all posts
Sunday, 27 September 2009
Find the name of members within a group using command line
Access your domain contoller and type the following format to find the members of a group :
dsget group "cn=IT guys, ou=IT admins, dc= Your Domain name , dc=com" -members
dsget group "cn=IT guys, ou=IT admins, dc= Your Domain name , dc=com" -members
Delete a user in Active Directory using command line
Access your domain contoller and type the following format to delete your user :
dsrm "cn=Joe Bloggs, ou=IT Admins, dc= Your Domain name , dc=com"
dsrm "cn=Joe Bloggs, ou=IT Admins, dc= Your Domain name , dc=com"
Add a user in Active Directory using command line
Access your domain contoller and type the following format to add your user :
dsadd user "cn=Joe Bloggs, ou=IT Admins, dc= Your Domain name , dc=com" -samid joebloggs -upn info@YourDomain.com -fn Joe -ln Bloggs -display "Joe Bloggs" -pwd Pa$$w0rd -desc "Systems Administrator"
*ou = is the name of Organisational Unit you will be adding the user to.
dsadd user "cn=Joe Bloggs, ou=IT Admins, dc= Your Domain name , dc=com" -samid joebloggs -upn info@YourDomain.com -fn Joe -ln Bloggs -display "Joe Bloggs" -pwd Pa$$w0rd -desc "Systems Administrator"
*ou = is the name of Organisational Unit you will be adding the user to.
Subscribe to:
Comments (Atom)