Using Powershell to replicate group membership
Posted on 2016-09-19
Hello Powershell Experts,
I have replicated my Active Directory environment in a test domain. I have the same OU structure, the same users and the same groups. The only thing left to do is replicate group membership. My thought is to user powershell to export all of my groups and their members and then use Powershell to populate the groups in the test environment. When I do a get-aduser, I don't see a memberof property. What is the best way to do this?