This is a video on how to work with Active Directory groups. I’m using a Server 2008 domain controller, but these commands will work on Server 2003 as well. I use these commands to add members to, create, move, rename, and delete groups.
Commands used…
dsadd group “cn=Marketing,OU=Groups,DC=my,dc=domain” -samid Marketing -secgrp yes -scope g
dsmod group “cn=marketing,ou=groups,dc=my,dc=domain” -addmbr “cn=L Prosser,ou=people,dc=my,dc=domain”
dsget group “cn=sales,ou=groups,dc=my,dc=domain” -members | dsmod group “cn=marketing,ou=groups,dc=my,dc=domain” -addmbr
dsmove “cn=marketing,ou=groups,dc=my,dc=domain” -newname “public relations”
dsadd ou “ou=marketing,dc=my,dc=domain”
dsmove “cn=public relations,ou=groups,dc=my,dc=domain” -newparent “ou=marketing,dc=my,dc=domain”
dsrm “cn=public relations,ou=marketing,dc=my,dc=domain”
Providing training videos since last Tuesday.
http://technoblogical.com
Thanks for watching.
Duration : 0:9:14