Link to home
Start Free TrialLog in
Avatar of ntr2def
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
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial