en-US/about_ADOpsKit.help.txt

TOPIC
    about_ADOpsKit

SHORT DESCRIPTION
    ADOpsKit is a PowerShell module for Active Directory and Hybrid Identity operations.

LONG DESCRIPTION
    ADOpsKit packages commonly needed Active Directory operations into a single
    installable module. Functions cover DC health checks, near-real-time DC
    monitoring, replication topology visualisation, GPO inventory, LDAP security
    auditing, account lockout tracing, performance baseline deployment, and
    Entra Connect sync monitoring. Run "Get-Command -Module ADOpsKit" for the
    current full list.

    Most functions work without ADWS (Active Directory Web Services). Core inventory
    and replication functions use LDAP via System.DirectoryServices and repadmin.exe
    directly, so they run from any domain-joined machine without WinRM or PS Remoting
    to every DC.

INSTALLATION
    Install-Module ADOpsKit -Scope CurrentUser

    On older Windows Server with restricted TLS:
        [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
        Install-Module ADOpsKit -Scope CurrentUser

OUTPUT PATHS
    By default all reports are saved to:
        C:\ADOpsKit\Reports\<FunctionName>\yyyy-MM-dd_<ReportName>

    Override the path using the -OutputPath or -OutputFolder parameter on any function.

SCHEDULED TASKS
    Use Register-ADOpsKitScheduledTasks to interactively set up Windows Scheduled
    Tasks for any combination of ADOpsKit functions. Tasks are registered under the
    \ADOpsKit\ folder in Task Scheduler.

    Service account credentials are validated up front (batch logon check, which
    also verifies the 'Log on as a batch job' right). Group Managed Service
    Accounts (gMSA) are supported as a passwordless alternative. The chosen setup
    is saved (without passwords) to ADOpsKitTasks.config.json and can be replayed
    with -ConfigPath. Reports older than -RetentionDays (default 90) are cleaned
    up after each run, and task exit codes surface failures in Task Scheduler.

        Register-ADOpsKitScheduledTasks
        Register-ADOpsKitScheduledTasks -ConfigPath 'C:\ADOpsKit\Reports\ADOpsKitTasks.config.json'

FUNCTIONS
    Get-ADReplicationTopologyDiagram
        SVG replication topology diagram using LDAP and repadmin. No ADWS required.

    Get-ADForestHealth
        HTML health report across the forest — DCDiag, disk, CPU, memory, uptime.

    Test-DCPortHealth
        TCP port check for all critical AD ports across all domain controllers.

    Get-AccountLockoutReport
        Locked account report with lockout source computers via Event ID 4740.

    Get-InsecureLDAPBinds
        Detects unsigned and simple LDAP binds via Event ID 2889.

    Get-GPOInventoryWithSettings
        GPO metadata, links, permissions, status, WMI filters, and configured
        settings from Get-GPOReport XML.

    Get-ADArchitectureAssessment
        Full AD inventory — HTML, JSON, and CSV output.

    Enable-DCPerformanceBaseline
        Deploys logman Data Collector Set on all DCs via WMI.

    Get-EntraConnectSyncStatus
        Entra Connect health — sync cycle, connector errors, pending exports.

    Register-ADOpsKitScheduledTasks
        Interactive wizard to register any ADOpsKit function as a scheduled task.

    Test-ADDCDiagHealth
        Full dcdiag test suite against every DC; emails an alert only on status
        change or a persistent-failure reminder.

    Register-ADDCDiagHealthMonitor
        Registers Test-ADDCDiagHealth as a Scheduled Task on a short repeating
        interval (default 5 min) for near-real-time DC monitoring.

    Invoke-ADRealtimeHeartbeat
        Lightweight per-DC heartbeat (TCP ports, SYSVOL/NETLOGON, required
        services) for 30-60 second polling; alerts via email/Slack only on
        state change.

    Get-DCDecommissionReadiness
        Pre-decommission scan of a single DC - FSMO roles, replication
        health, logon activity, DNS/SYSVOL/DFSR, sites/subnets, trusts,
        Global Catalog status, and a readiness checklist.

REQUIREMENTS
    - Windows PowerShell 5.1 or later
    - Domain Admin rights or equivalent
    - RSAT-AD-PowerShell for AD module functions
    - GPMC for GPO functions
    - repadmin.exe on PATH (included with RSAT and on all DCs)
    - ADSync module for Get-EntraConnectSyncStatus

LINKS
    PowerShell Gallery : https://www.powershellgallery.com/packages/ADOpsKit
    GitHub : https://github.com/Karanth1992/powershell-scripts
    Author site : https://karanth.ovh