Link to home
Start Free TrialLog in
Avatar of SAM2009
SAM2009Flag for Canada

asked on

Need script to valide an mail attribute from each members of a group and remove or add users to a group

Hi,

I need help to do a PowerShell script like this:

I have 2 AD groups:
- GroupAllUsers
- GroupWithEmail

Script should do this:

check each member in GroupAllUsers
  If member has a value in mail attribute
      then remove member from GroupAllUsers and add him in GroupWithEmail
ASKER CERTIFIED SOLUTION
Avatar of Mahesh
Mahesh
Flag of India 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
Avatar of SAM2009

ASKER

Thanks a lot!