Active Directory Monitoring Solution
Purpose
This document delineates the contents applicable for monitoring the Active Directory Domain environment. Please review the implementation steps meticulously, as a significant portion of the content relies on the Active Directory
plugin.
This article encompasses multiple components and contents. Please import and implement only the required components.
Associated Content
Content
Content | Type | Function |
---|---|---|
Internal Monitor - Active Directory - Sync Out of Date | Internal Monitor | This monitor looks for the AD server that has been onboarded for more than 30 days and is experiencing a credential issue in the Active Directory Plugin. |
Internal Monitor - Active Directory - Enabled Test Accounts | Internal Monitor | This monitor will look for any account with the name Test in the account name and will flag that account if it is enabled on the domain. |
Internal Monitor - Active Computers in AD with No Agent | Internal Monitor | The monitor set generates a client-level ticket containing details of domain-joined computers active within the domain, which have been joined to the domain for at least 7 days but do not have the Automate agent installed. |
Internal Monitor - Active Directory - ADPluginUser - Create/Update | Internal Monitor | The purpose of this monitor set is to create an 'ADPluginUser' account for the domain controllers detected in AD Plugin. |
Remote Monitor - Active Directory Replication Anomaly Monitoring | Remote Monitor | The monitor set operates on a cluster of Primary Domain Controllers (Infrastructure Masters) for each domain, triggering a failure alert upon detecting any Active Directory Replication Failure. |
Script - New Domain Admin Monitor - Create | Client Script | Creates remote monitors to ticket when a new domain admin is added and has not been excluded. |
Active Directory Reporting Solution | Reporting Solution | Full Reporting solution that pulls from the Active Directory Plugin |
Remote Monitor - Domain Admin Account Lockout | Remote Monitor | This remote monitor is configured to detect when the domain admin account is locked. It checks every 15 minutes and creates a ticket for the partner to review, providing complete details. |
Non-Stack Content
Content | Type | Function |
---|---|---|
Internal Monitor - Active Directory - User Last Logon > X Days | Internal Monitor | This monitor will check for users who have not logged in for more than X days and are not administrator accounts. |
Internal Monitor - Active Computers in AD with No Agent | Internal Monitor | The monitor set generates a client-level ticket containing details of domain-joined computers active within the domain, which have been joined to the domain for at least 7 days but do not have the Automate agent installed. |
GPO Audit | Audit Script | This audit script is designed to populate some dataviews outlining the currently installed GPOs in the Active Directory Environment. |
Script - AD - Enable AD Recycle Bin | Script | This script is designed to enable the AD recycle bin on a Domain Controller. |
Script
Content | Type | Function |
---|---|---|
Script - AD - Enable AD Recycle Bin | Script | This script enables the AD Recycle Bin. Microsoft TechNet Article |
Script - Weak Passwords - AD Test | Script | The script tests the hashed credentials in AD against a known compromised or weak list. |
Script - Active Directory - Plugin User Account - Create/Update | Script | This script will create/update a domain admin account to be used with the AD plugin with a random password. |
Script - Group Policy - Audit | Script | This process will execute PowerShell to gather GPO data. |
AD - Create Views/Table/Schedule for AD Reporting Solution | Script | This creates all the needed items in the Database to ensure the Active Directory Reporting Solution functions correctly. |
Script - ScreenConnect - RMM+ Autofix - AD Plugin - Sync Out of Date [Ticket] | Script | This script is intended to be used as an auto fix for the CWM - Automate - Internal Monitor - Active Directory - Sync Out of Date monitor. This script will not function if run manually. |
Dataview
Content | Type | Function |
---|---|---|
Dataview - Active Directory - AD Users | Dataview | This dataview displays all users associated with a domain and general information about all the users. |
Dataview - Active Directory - Domain Groups and Members | Dataview | This dataview shows you all domains and their respective groups and a corresponding list of members. |
Dataview - Windows - Group Policy Objects | Dataview | This dataview shows information about GPOs, their applied policies, where they are linked to, and to what trustees they are applied. |
Dataview - Windows - Group Policy Settings | Dataview | This dataview shows information about GPOs, their applied policies, and settings. |
Dataview - Windows - Group Policy Object Links | Dataview | This dataview shows information about GPOs, their applied policies, and where they are linked to. |
Dataview - Windows - Group Policy Object Security Filtering | Dataview | This dataview displays information related to Group Policy Objects in Active Directory, specifically related to security policies. |
Reports
Content | Type | Function |
---|---|---|
Report - Active Directory User Assessment | Report | Displays an overall health view of the Client's Active Directory along with a full user report. |
Report - Active Directory User Groups - Detail | Report | Displays a complete user list with all groups that each user is in, along with an overall view of what groups are used the most. |
Report - Computers in Active Directory - No Agent | Report | Displays a list of all computers that are in Active Directory but not in Automate. Can be used to clean up Client Active Directories. |
SubPageHeaderLandscape | Subreport | Used as the template for the page header on these reports. |
Deprecated Content
Content | Type | Function |
---|---|---|
Internal Monitor - Active Directory - New User Account Created | Internal Monitor | This monitor looks for new domain user accounts that have a creation date within the past day. A ticket is created for each new account discovered. |
Internal Monitor - Password Expires This Week [G] | Internal Monitor | Detects the domain users whose password is going to expire within a week. |
Internal Monitor - Account Disabled | Internal Monitor | This Monitor looks for the disabled accounts on Active Directory servers through the Active Directory plugin and creates a ticket for each one found. |
Remote Monitor - Reset AD Users Password Age | Remote Monitor | This remote monitor checks AD user's login password age to see if the age is set to unlimited, and if so, it will change the user password from never expire to expire and will also change the default domain policy password age to 90 days. |
Remote Monitor - AD Account Lockout Detection | Remote Monitor | This remote monitor will detect when any AD account is flagged as being locked out. This can be noisy, so it has been deprecated. |
Script - Active Directory - Alerting - Password Expires This Week [Global, Autofix]* | Script | This script sends an email to the user whose password is expiring within 1 week. This already happens through Windows, so it's been deprecated. |
Implementation (Plugin)
-
The solutions presented in this section rely on the functionality provided by the
Active Directory
plugin. Therefore, it is imperative to verify that both theActive Directory
andActive Directory Remote
plugins are correctly installed and operational within the environment. -
Ensure that the RMM+ Plugin is correctly configured and operational within the environment, as this solution relies on the proper configuration of the CWM - Automate - RMM+ Plugin Configuration.
-
Ensure the following content is imported to the environment as it is used in multiple solutions for ticketing:
- Script - Ticket Creation - Computer
- Script - Ticket Creation - Client
- Script - Ticket Creation - Failures Only
- Dataview - Active Directory - AD Users
- Dataview - Active Directory - Domain Groups and Members
- Alert Template -
△ Custom - Ticket Creation - Client
- Alert Template -
△ Custom - Ticket Creation - Computer - Failures Only
- Alert Template -
△ Custom - Ticket Creation - Computer
OR - If the partner does not have PSA Integration, the Email Creation Alert Templates can be used in place of the Ticket Creation ones:
- Script - Email Creation - Computer
- Script - Email Creation - Failures Only
- Dataview - Active Directory - AD Users
- Dataview - Active Directory - Domain Groups and Members
- Alert Template -
△ Custom - Email Creation - Computer - Failures Only
- Alert Template -
△ Custom - Email Creation - Computer
After importing, ensure the system property
_sysTicketDefaultEmail
is filled out with the email address specified by the consultant.Note: There is not currently an 'Email Creation - Client' script/alert template. If this is required, then a development ticket will need to be generated to get it created.
Reporting Solution
-
Import the following content from the ProSync Plugin:
-
Run the AD - Create Views/Table/Schedule for AD Reporting Solution script once on any random machine to create the framework needed for the solution.
- Delete the script afterward.
-
Download the attached SQL file named 'Import_All_AD_Reports.sql'. Refer to the below document for the attachment:
-
Import the file using System → General → Import → SQL File (The SQL file is too large for a remote monitor).
- Doing this will configure the following reports:
Sync Out of Date
-
Import the following content using the ProSync plugin:
- Internal Monitor - Active Directory - Sync Out of Date
- Script - ScreenConnect - RMM+ Autofix - AD Plugin - Sync Out of Date [Ticket]
- Alert Template -
△ Custom - Autofix - AD Plugin Sync Out of Date
-
Reload the system cache.
-
Navigate to Automation → Monitors → Internal Monitors and configure the following:
- Find the Internal Monitor - Active Directory - Sync Out of Date.
- Assign the
△ Custom - Autofix - AD Plugin Sync Out of Date
alert template.
- Assign the
- Find the Internal Monitor - Active Directory - Sync Out of Date.
Enabled Test Accounts
-
Import the following using the ProSync Plugin:
-
Reload the System Cache:
-
Navigate to Automation → Monitors → Internal Monitors and configure the following:
- Find the Internal Monitor - Active Directory - Enabled Test Accounts.
- Assign the
△ Custom - Ticket Creation - Computer
alert template. - OR
- Assign the
△ Custom - Email Creation - Computer
alert template.
- Assign the
- Find the Internal Monitor - Active Directory - Enabled Test Accounts.
PC Missing Automate
-
Import the following content from the ProSync Plugin:
-
Reload the System Cache:
-
Navigate to Automation → Monitors → Internal Monitors and configure the following:
- Find the Internal Monitor - Domain Computers Missing Automate Agent.
- Assign the
△ Custom - Ticket Creation - Client
alert template. - If the partner requires an Email Creation - Client alert template, this will need to be built by development.
- Assign the
- Find the Internal Monitor - Domain Computers Missing Automate Agent.
ADPluginUser - Create
-
Import the following content using the ProSync Plugin:
- Internal Monitor - Active Directory - ADPluginUser - Create/Update
- Script - Active Directory - Plugin User Account - Create/Update
- Alert Template -
△ Custom - Autofix - AD Plugin User - Create/Update
-
Run the script against any online computer with
Set Environment
parameter set to1
.- Set the required values for the rest of the user parameters. (This should be specified by the consultant).
- Note: There are default values for all the main parameters (Shown Below).
- Set the required values for the rest of the user parameters. (This should be specified by the consultant).
-
Validate the system property values within the System Dashboard.
Last Login > X Days
-
Import the following monitor using the ProSync Plugin:
-
Reload the System Cache:
-
Edit the monitor with the last login value specified by the consultant; if this has not been specified, then reach out to the consultant to clarify:
-
Navigate to Automation → Monitors → Internal Monitors and configure the following:
- Find the Internal Monitor - Active Directory - User Last Logon > X Days.
- Assign the
△ Custom - Ticket Creation - Computer
alert template. - OR
- Assign the
△ Custom - Email Creation - Computer
alert template.
- Assign the
- Find the Internal Monitor - Active Directory - User Last Logon > X Days.
Implementation (No Plugin)
The solutions presented in this section do not rely on any plugin.
Group Policy Audit
-
Import the following content from the ProSync Plugin:
- Script - Group Policy - Audit
- Dataview - Windows - Group Policy Objects
- Dataview - Windows - Group Policy Settings
- Dataview - Windows - Group Policy Object Links
- Dataview - Windows - Group Policy Object Security Filtering
- Internal Monitor - GPO Modified
- Note: This is optional. Only import this if specifically requested.
-
Reload the System Cache:
-
Schedule the Script - Group Policy - Audit to run once per day against the domain controllers group.
-
Only perform this step if requested by the consultant:
- Navigate to Automation → Monitors → Internal Monitors and configure the following:
- Find the Internal Monitor - GPO Modified.
- Assign the
△ Custom - Ticket Creation - Computer
alert template. - OR
- Assign the
△ Custom - Email Creation - Computer
alert template.
- Assign the
- Find the Internal Monitor - GPO Modified.
- Navigate to Automation → Monitors → Internal Monitors and configure the following:
Enable AD Recycle Bin
-
Import the following content from the ProSync Plugin:
- Script - AD - Enable AD Recycle Bin
- Alert Template -
△ Custom - Execute Script - AD - Enable AD Recycle Bin
-
Import the Role - AD Domain Recycle Bin Feature.
-
Import the CWM - Automate - Remote Monitor - AD Recycle Bin State Check using the following instructions outlined here: Import - Remote Monitor - AD Recycle Bin State Check.
-
Reload the System Cache:
-
Locate the EPM - User Management - Remote Monitor - Reset AD Users Password Age remote monitor.
- By opening the
Domain Controllers
group.- Apply the
△ Custom - Execute Script - AD - Enable AD Recycle Bin
alert template to the group monitor.
- Apply the
- By opening the
Replication Anomaly
-
Import the Remote Monitor - Active Directory Replication Anomaly Monitoring using the following instructions outlined here: Implement - Remote Monitor - Active Directory Replication Anomaly Monitoring.
-
Reload the System Cache:
-
Locate the RSM - Active Directory - Remote Monitor - Active Directory Replication Anomaly Monitoring remote monitor.
- By opening the
Domain Controllers
group.- Apply the
△ Custom - Ticket Creation Computer - Failures Only
alert template to the group monitor. - OR
- Apply the
△ Custom - Email Creation Computer - Failures Only
alert template to the group monitor.
- Apply the
- By opening the
New Domain Admin
-
Remove the existing
ProVal - Production - New Domain Admin
monitor set from the groups it's already applied to.- Execute this SQL query from a RAWSQL monitor set to get rid of the existing monitors:
Delete From Groupagents where `Name` = 'ProVal - Production - New Domain Admin'
- Execute this SQL query from a RAWSQL monitor set to get rid of the existing monitors:
-
Open the
Server Status
tool by navigating toHelp
→Server Status
. -
Click the
Do Group Refresh
button to refresh and apply the changes made. -
Click
OK
to the popup message and wait for a minute to allow the changes to take effect. -
Import the following script from the ProSync Plugin:
-
Run/Debug the Script
- Execute or debug the script against a single client, with the
Set_Environment
parameter set to1
. This action will generate the necessary system properties and Extra Data Fields (EDFs) for managing the remote monitors.
- Execute or debug the script against a single client, with the
-
Reload System Cache.
-
Configure System Properties and EDFs.
- Navigate to the System Dashboard → Config → Configurations → Properties.
- Find the properties beginning with
NDA_Monitoring
.- The consultant should have provided you with any customizations that are required. Please read through the detailed System Properties and EDF explanations to understand how to configure any customizations. You can find that here.
-
Schedule the Script.
- Schedule the script to run once per day, preferably around midnight, from the dashboard for optimal results.
- Schedule the script to run once per day, preferably around midnight, from the dashboard for optimal results.
Domain Admin Lockout
-
Import the Remote Monitor - Domain Admin Account Lockout using the following implementation instructions:
-
If the partner does not have any PSA integration, then navigate to the Domain Controllers group:
- Then adjust the alert template for this monitor to be:
- Alert Template -
△ Custom - Email Creation Computer - Failures Only
- Alert Template -
- Otherwise, ensure the alert template is set to the following:
- Alert Template -
△ Custom - Ticket Creation Computer - Failures Only
- Alert Template -
- Then adjust the alert template for this monitor to be: