Use this Knowledge Script to monitor changes to sites in an Active Directory forest. This script raises an event if any changes since the last job iteration are detected.
Active Directory domain controller
The default interval for this script is Every 24 hours.
Set the following parameters as needed:
Parameter |
How to Set It |
---|---|
General Settings |
|
Raise event if job fails |
|
Event severity when job fails |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the EnumerateSites job fails. The default is 35. |
Monitor the number of sites in forest |
|
Enable job delegation? |
Select Yes to enable the delegation of the job to another server where appropriate. If enabled, runs the job on the selected computer that holds the server role (Domain Master or Schema Master) that you selected for the Delegate forest-wide monitoring to the... parameter (see below). The default is unselected. For more information, see Section 3.1, AD Knowledge Script Job Delegation. |
Delegate forest-wide monitoring to the |
Select the server role to which the job should be delegated: Domain Master or Schema Master. The default is Domain Master. |
Raise event when DC assumes this role? |
If you enabled job delegation, set to Yes to raise an event if the DC assumes the server role you selected for the Delegate forest-wide monitoring to the... parameter. The event message indicates that the monitored computer has assumed the selected role. The default is Yes. |
Event severity when DC assumes this role |
Set the severity level, from 1 to 40, to indicate the importance of an event in which the DC assumes the role you selected for the Delegate forest-wide monitoring to the... parameter. The default is 30. |
Raise event when DC relinquishes this role? |
If you enabled job delegation, set to Yes to raise an event if the DC gives up the server role you selected for the Delegate forest-wide monitoring to the... parameter. The event message indicates that the monitored computer has relinquished the selected role. The default is Yes. |
Event severity when DC relinquishes this role |
Set the severity level, from 1 to 40, to indicate the importance of an event in which the DC relinquishes the role you selected for the Delegate forest-wide monitoring to the... parameter. The default is 30. |
Event Notification |
|
Raise event when changes to sites occur? |
Select Yes to raise an event if changes occur to sites in the forest. The default is Yes. |
Event severity when number of sites changes |
Set the severity level, from 1 to 40, to indicate the importance of an event in which changes occur to sites in the forest. The default is 25. |
Data Collection |
|
Collect data for number of sites in forest? |
Select Yes to collect data for charts and reports. If enabled, data collection returns the number of sites. The default is unselected. |