Friday, May 18, 2012

Active Directory CMD

Active Directory Group Name Query and Export List

dsquery group -name "My Group A" | DSGET group -members  > Group-A-members.txt

Organization ADD

dsadd ou "ou=Development, ou=NY-OFFICE, dc=mmx, dc=com"

Group ADD

dsadd group "cn=Development Team, ou=Groups, ou=NY-OFFICE, dc=mmx, dc=com" -secgrp yes -scope g

User ADD

dsadd user "cn=zawhtet, ou=Development Team, ou=NY-OFFICE, dc=mmx, dc=com" -fn Zaw -ln Htet -pwd hateUnow99 -memberof "cn=Development Team, ou=Groups, ou=NY-OFFICE, dc=mmx, dc=com"  -mustchpwd yes


No comments: