Link to home
Start Free TrialLog in
Avatar of Antzs
AntzsFlag for Malaysia

asked on

PowerShell Script to check changes in Domain Admin and other privilege group

Anyone have a working script which can be run on a schedule to check changes to group membership?  I found a few links in the internet but the script does not seems to be working.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've actually written a script that does monitor for changes in group membership. It doesn't do comparing before/after like most approaches on the internet you can find but it scans events on Domain Controllers for that (it requires DC configuration for events monitoring). It gives you insight on who did the change and when the change happen. The solution is still work in progress but it does work for group membership changes https://evotec.xyz/monitoring-active-directory-changes-on-users-and-groups-with-powershell/ Hope it helps.