In the following Runbook example I log every newly created group in Active Directory. This can be useful if you have administrators that create groups and you need to keep track of which groups have been created during the day.
I will log the information in a database that will look like the Picture below. In the database every new AD Group will get the Status of New and all Groups that have been removed since last time the Runbook ran will have a NULL value. This makes it easy to pull reports on which Groups that have been created since last time the Runbook ran.
Picture of the Runbook.
To try this out you will need to do the following.
Create the database with the following query.
Install Integration Pack “Active Direcrory” and “Orchestrator Integration Pack for PowerShell Script Execution 1.1”.
Import the Runbook and change every activity to fit your environment.
Download Runbook: Check for New Groups