Tell me more ×  Is there a way to update the "Managed By" field
for every group in Active Directory? I would also need to check
"Manager can update membership list" also.  share|improve this
question Are you looking to list the same user as manager for
all groups? –  jscott May 25 '11 at 18:24 @jscott - Yes I am – 
Patrick May 25 '11 at 18:26 add comment  3 Answers  up vote 8
down vote accepted  This can be done through PowerShell
$DNOfManager=dsquery user -o dn -name "Testing Tester"
$GroupList=dsquery group DC=ad,dc=example,dc=local -limit 600
Foreach ($group in $grouplist) {     set-adgroup -Identity
$Group -ManagedBy $DNOfManager     add-adpermission -Identity
$Group -user $DNOfManager -AccessRights ReadProperty,
WriteProperty -Properties 'Member'  This is undebugged, but
should get you most of the way there. What it does:    1. Uses
dsquery to grab the Distinguished Name of the user with the
full-name of "Testing Tester".   2. Uses dsquery to fetch a list
of candidate groups, and passes that to a varia