Update: Dimitry Sotnikov has posted a great article about the new cmdlets. You can read his post here. After reading Dimitry’s post, I created a new script.
For some test purposes I created a new test user. This test user has to be a member off al my application groups in Active Directory. This job can easily be done with Powershell and the Quest AD cmdlets.
$User = Read-Host ("Username") Get-QADGroup -Name 'GG_APL_*' -NotContainsIndirectMember $User ` | Add-QADGroupMember -Member $User
To verify the changes, you can run the following script:
$User = Read-Host ("Username") Get-QADGroup $User | Select Name