JSC
2008-03-12 18:32:07 UTC
I currently use the Quest AD Cmdlets to give a printout of group membership
of a particular user by doing the following:
$user = Get-QADUser ***@domain.com
$user.memberOf | Get-QADGroup | ft name
Is there a way to pipe the results of the group membership and use the
addQADgroupmember CMdlet to make another account mirror the exact same group
membership as the first account?
Example: username A is a member of group 1, 2, and 3. Using the 2nd line of
code above, it prints out the groups 1, 2, 3. Then take those groups and add
username B to those exact same groups.
of a particular user by doing the following:
$user = Get-QADUser ***@domain.com
$user.memberOf | Get-QADGroup | ft name
Is there a way to pipe the results of the group membership and use the
addQADgroupmember CMdlet to make another account mirror the exact same group
membership as the first account?
Example: username A is a member of group 1, 2, and 3. Using the 2nd line of
code above, it prints out the groups 1, 2, 3. Then take those groups and add
username B to those exact same groups.