ntr2def
asked on
compare groups using an input file
Using what was provided to me. How do I expand on this by using an input file to provide me what I need in bulk.
$GroupA = get-qadgroupmember 'cn=accounting users, OU=Department Groups, DC=domain, DC=com' -type user | select -expand property samaccountname
$GroupB = get-qadgroupmember 'cn=account users, OU=Department Groups, DC=NewDomain, DC=com' type user | select -expand property samaccountname
compare $GroupA $GroupB
$GroupA = get-qadgroupmember 'cn=accounting users, OU=Department Groups, DC=domain, DC=com' -type user | select -expand property samaccountname
$GroupB = get-qadgroupmember 'cn=account users, OU=Department Groups, DC=NewDomain, DC=com' type user | select -expand property samaccountname
compare $GroupA $GroupB
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.