Active Directory Audit Script (users, computers, policies, access)
Read-only PowerShell .bat that audits Active Directory users, privileged groups, computers, password policy, GPOs, trusts, OU permissions and domain controllers, with PASS/WARN/FAIL results and CSV evidence.
Windows (.bat) USD 3.00 for all versions · read-only · 1 hour 30 minutes to download
Pay via M-Pesa, Airtel Money and local mobile money across East Africa, or by Visa / Mastercard. How to pay
| Script | Active Directory Audit Script (users, computers, policies, access) |
|---|---|
| Platform | Windows Server / domain-joined Windows |
| Audit area | Active Directory |
| Purpose | Gives an auditor or IT admin the full Active Directory picture in one run: who has access, which accounts are stale or risky, and whether the domain policies meet good practice. |
| Price | USD 3.00, all platform versions |
Prerequisites
- A domain-joined Windows computer or a domain controller
- The RSAT Active Directory module (Get-ADUser). On Windows 10/11: Settings > Optional features > RSAT: Active Directory
- The GroupPolicy module for the GPO step (RSAT: Group Policy Management)
- A domain account that can read AD (any domain user can read most of it)
What the script checks
- Users: enabled/disabled, last sign-in, password age, password never expires, not required, reversible encryption, Kerberos pre-auth off (AS-REP), SPN accounts (Kerberoastable), admin count
- Privileged groups: Domain Admins, Enterprise Admins, Schema Admins, Administrators, Account/Backup/Server/Print Operators, DnsAdmins, Group Policy Creator Owners, with nested members
- Computers: OS, last sign-in, stale and unsupported systems, unconstrained delegation
- Default and fine-grained password policies, lockout
- GPOs: unlinked, empty, last change; trusts; OUs; permissions on the domain root
- Domain controllers, functional levels, krbtgt password age
- The full script for Windows
- How to open the correct console, and the permissions it needs (least privilege)
- Step-by-step instructions
- The expected output and how to interpret it
Also included in the zip as README-how-to-run.txt. Follow the audit process guide for scope, authorisation and evidence.
Safe by design
- Read-only: installs nothing and changes no settings.
- Sends nothing to our servers; results stay on your computer.
- Secrets are masked and password hashes are never printed.
- Plain text: open it in any editor and check every line before running it.
Also known as: active directory audit script, AD audit powershell, AD user audit bat, privileged group audit, stale accounts script, domain admins audit, GPO audit script, AD security assessment, active directory review checklist script.
Templates to use with this script
More audit scripts
Questions
Is the active directory audit script safe to run?
Yes. It only reads information and writes its results next to itself. It installs nothing, changes no settings and sends nothing to our servers. Secrets it finds are masked, and password hashes are never printed. It is plain text: open it in any editor to check every line before you run it.
How do I get the script?
Click "Get script", pay USD 3.00 through APOPS Pay (M-Pesa, Airtel Money, local mobile money across East Africa, or Visa / Mastercard payment), then download the Windows version. One payment covers every operating system.
How long can I download it?
For 1 hour 30 minutes after payment, as often as you like. You are told this before you pay. Keep the zip: the script itself never expires.
Do I need administrator rights?
A domain account that can read AD (any domain user can read most of it)
What do I get after paying?
The full script for each platform, how to open the correct console, the permissions it needs, step-by-step instructions, the expected output and how to read the results. They are shown on this page and included as a README in the zip.