scripting - Powershell: If user in domain x add to AD group y -
So I need to run a script that checks the membership of AD Group. Each member in this Eddy Group will be added to the specific Eddy Group on the basis of their domain. Although it looks good for a small number of users, I am looking for a way for 20,000 users to do this regularly. Example: We have an ADG group called Northamerica, we want to add members in North America either in Westcast or East Coast Edi Group, if their domain is West Coast, or based on the East Coast.
For users in North America, if a user domain in the west coast adds a user to the Westcast ad group if users add users to East Coast East Coed Edi group in the next domain
How does this effectively? Adding one by one through each member of North America and adding them one by one is not the best way to do this.
Thank you,
Comments
Post a Comment