Active Directory monitor - Scripts and Commands used

Active Directory monitor - Scripts and Commands used

Refer to this document to learn about the scripts and commands used to fetch data in the Active Directory monitor.

VB Scripts:

  1. The .vbs scripts are used to collect Performance Metrics in WMI mode.
  2. Below are the scripts used:
    1. wmicheckauthentication.vbs - Performs authentication checks for the monitor
    2. wmiQueryExecuter.vbs cookwmiget.vbs - Fetches common counters
    3. ADReplicationData.vbs - Retrieves Replication Statistics
  3. For information on WMI classes and counters, refer to Self Help Tools or the ActiveDirectory.bat file present in <Applications Manager Home>\bin\troubleshooting directory.

PowerShell Scripts:

  1. ADTimeSyncTest.ps1
    1. Fetches Time Synchronization metrics.
    2. Determines whether the monitored AD server is a Primary DC or not.
    3. Command used in the script: 
           w32tm /monitor
    4. Refer to this KB article for more details.
  2. PortConnectivity.ps1 & ActiveDirectoryPorts.ps1
    1. Fetches Active Directory Port Connectivity details.
    2. The ports to be monitored are listed in ActiveDirectoryPorts.ps1 script.
    3. Commands used in PortConnectivity.ps1 script:
           Test-NetConnection
                (If this fails, the following command is used)
           Net.Sockets.TcpClient.Connect($hostname, $port)
    4. Refer to this KB article for more information.
  3. ADDiagnosticTests.ps1
    1. Runs Diagnostic Tests and retrieves results from the AD server.
    2. Command used in the script:
           dcdiag
    3. Refer this KB article for more details.


                  New to ADSelfService Plus?