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:
- The .vbs scripts are used to collect Performance Metrics in WMI mode.
- Below are the scripts used:
- wmicheckauthentication.vbs - Performs authentication checks for the monitor
- wmiQueryExecuter.vbs & cookwmiget.vbs - Fetches common counters
- ADReplicationData.vbs - Retrieves Replication Statistics
- 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:
- ADTimeSyncTest.ps1
- Fetches Time Synchronization metrics.
- Determines whether the monitored AD server is a Primary DC or not.
- Command used in the script:
w32tm /monitor - Refer to this KB article for more details.
- PortConnectivity.ps1 & ActiveDirectoryPorts.ps1
- Fetches Active Directory Port Connectivity details.
- The ports to be monitored are listed in ActiveDirectoryPorts.ps1 script.
- Commands used in PortConnectivity.ps1 script:
Test-NetConnection
(If this fails, the following command is used)
Net.Sockets.TcpClient.Connect($hostname, $port) - Refer to this KB article for more information.
- ADDiagnosticTests.ps1
- Runs Diagnostic Tests and retrieves results from the AD server.
- Command used in the script:
dcdiag - Refer this KB article for more details.
New to ADSelfService Plus?