Powershell script Check and Update User Group membership in Active Directory. Past weekend I got a task:

  1. Check if the AD Users members of AD Group;
  2. If users dosen’t members of this AD Group – add them to the AD Group.

P. S. Probably, it is incorrectly written in English – you may correct me in the comments below.

To complete this task, I wrote next script: