· Creating or deleting GPO
· Changes in GPO
o Changes in AD part
o Changes in SYSVOL part
· Linking or unlinking to Organization Unit
· Changing in DACL and SACL
· GPO Name
· GPO GUID
· Author of change (if possible)
· Event ID
· Event Description
· Any additional info
· Setup audit on monitored servers
· Create rule to respond to specific event in security log with alert
· Create subscription responding to specific alert with PowerShell script
· Create PowerShell script which collect additional attributes
· Create new entry into SCOM log with collected information
· Create final alert
· 5136: A directory service object was modified
· 5137: A directory service object was created
· 5141: A directory service object was deleted
· Alert generating rule: NT event log
· Rule name: Info alert - GPO changed based on 5136
· Rule target: Windows Domain Controller
· Log name: Security
· Filter: Event ID equals 5136 (for testing only this filter is enough but you can add more)
· Priority: Medium
· Severity: Information
· Description:
o Event ID: $Data/EventNumber$
o Event Description: $Data/EventDescription$
· Alert suppression: I’d recommend to setup suppression with following parameters:
o Event ID
o Parameter 4 (user name)
o Parameter 10 (GUID)
o Parameter 11 (class)
· Type: command
· Name: PowerShell CMD – GPO changes
· Full Path: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
· Parameters: C:\Temp\Res1.ps1 -AlertId '$Data/Context/DataItem/AlertId$'
· Startup folder: C:\Temp
· New subscriber: Administrator
· Address: admin@mycompany.com
· Channel type: command
· Command channel: PowerShell CMD – GPO changes
· Schedule: always
· Name: GPO change notification by PowerShell
· Criteria:
o Created by rule: Info alert - GPO changed based on 5136
o Resolution state: New(0)
· Subscriber: Administrator
· Channels: PowerShell CMD – GPO changes
· Aging: Send notifications without delay
· Get all parameters from SCOM alert Info alert - GPO changed based on 5136
· Close that alert
· Parse provided GPO GUID and base on it find GPO name
· Parse other provided parameters and build custom description
· Create new entry into SCOM log