PSADHealth icon indicating copy to clipboard operation
PSADHealth copied to clipboard

Build a function that will monitor groups for membership changes

Open compwiz32 opened this issue 6 years ago • 1 comments

Create a function that will monitor a group and report if a membership change is made. Initial thought is that this can be done with compare object by querying the group members at task start and then saving those members to a variable and then running compare-object at regular intervals to check for the changes.

compwiz32 avatar Nov 18 '18 05:11 compwiz32

Found these tools to use as reference:

  • https://github.com/lazywinadmin/Monitor-ADGroupMembership/blob/master/Monitor-ADGroupMemberShip.ps1

  • http://wragg.io/watch-for-changes-with-powershell/

compwiz32 avatar Nov 18 '18 05:11 compwiz32