Copy AD Members/Users from one Group to another using Powershell

The following script will Add the users from Group_A to Group_B only when the user doesn’t exist on Group_B and Group_C [code language=”powershell” gutter=”true” highlight=”4,7″ light=”true” title=”PowerShell Code”] Import-Module ActiveDirectory $Group_BUsers = Get-ADGroup Group_B -properties members | Select-Object members | % { $_.Members} $Group_CUsers = Get-ADGroup Group_C -properties members | Select-Object members | % { …

WordPress Appliance - Powered by TurnKey Linux