A PowerShell solution for syncing unnested AD group membership with other AD groups that have nested group memberships.
Upon first run, the script will create the config.json file used to store the settings. Edit the file to fit your environment. The group names in the config file are only there for ease of reference when adding or removing groups.
Currently, the AD groups being sync'd are located in a child domain and the user accounts are located in the parent domain.
Group retrieval by GUID reduces configuration file maintenance.
The PowerShell Active Directory Module must be installed on the system.
# On Windows 10 systems
Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0
Pull the GUID of an AD Group
(Get-ADGroup -Identity MyGroupName -Server child.parent.mycollege.edu).ObjectGUID.ToString();