Sysinternals and Active Directory
Sysinternals is Microsoft's free suite of advanced Windows tools. Several are built for Active Directory, and many more help troubleshoot domain controllers and logons. Get them from learn.microsoft.com/sysinternals, run them directly from \\live.sysinternals.com\tools, or install with winget install Microsoft.Sysinternals.Suite.
| Tool | AD use |
|---|---|
| AD Explorer | Browse and edit AD, save and compare snapshots. |
| AD Insight | Trace LDAP calls an app makes, live. |
| AdRestore | List and reanimate deleted (tombstoned) objects. |
| PsGetSid | Translate names and SIDs, show machine and domain SIDs. |
| PsLoggedOn / LogonSessions | Who is logged on, with which authentication package. |
| AccessChk / AccessEnum / ShareEnum | Effective permissions and user rights on DCs and servers, and open shares across the domain. |
| Sysmon | Detailed process, network and LDAP-adjacent telemetry on DCs and admin hosts. |
| Process Monitor, Process Explorer, TCPView, PsExec, PsService, Autoruns, Sigcheck | General DC and client troubleshooting. |
AD Explorer
An advanced LDAP browser and editor. Faster and safer to browse than ADSI Edit, and it shows every attribute and the schema.
- Snapshots: save the entire directory to a file, then browse it offline or compare two snapshots to see exactly what changed (great after an incident or a big migration).
- Search on any attribute with LDAP-style conditions, and save favourite locations.
- View permissions and the object's attribute metadata.
ADExplorer.exe # connect to a DC with your credentials
ADExplorer.exe -snapshot "" C:\snaps\ad-2026-12-05.dat # create a snapshot from the command line
A snapshot contains the whole directory, including attributes attackers like (SPNs, ACLs, delegation). Store snapshots like a backup.
AD Insight
Monitors LDAP calls made through wldap32.dll by any process on a machine: the search filters, the attributes requested, the results and errors. Use it to find out why an application is slow against AD, which DC it binds to, or what an installer is changing in the directory.
AdRestore
Lists deleted objects and reanimates tombstones. Without the AD Recycle Bin, reanimated objects lose most attributes, but you keep the SID and GUID, so permissions still match.
adrestore # list all deleted objects
adrestore alice # list deleted objects matching "alice"
adrestore -r alice # restore them (asks for confirmation)
With the Recycle Bin enabled, use ADAC or Restore-ADObject instead (see Backup).
PsGetSid
psgetsid # SID of this machine
psgetsid CORP\alice # SID of a user
psgetsid S-1-5-21-...-1105 # name of a SID (found in ACLs or logs)
psgetsid \\dc01 CORP # domain SID as seen from a DC
Useful for orphaned SIDs in ACLs after deletions or migrations, and to spot cloned machines with duplicate SIDs.
PsLoggedOn
Shows who is logged on locally to a machine and through resources such as shares. Handy for finding where an admin account is used (it should not be on workstations) or where a locked-out account still has a session.
psloggedon \\fileserver01
psloggedon CORP\alice # scan the network for machines where alice is logged on
LogonSessions
Lists every active logon session on the machine with the logon type, authentication package (Kerberos, NTLM, Negotiate), logon server and SID. Use it on servers to check whether connections use Kerberos or fall back to NTLM.
logonsessions -p # include processes running in each session
AccessChk, AccessEnum and ShareEnum
- AccessChk: effective access of a user or group to files, registry keys, services, processes and user rights. For ACLs on AD objects use
dsaclsor AD Explorer. - AccessEnum: GUI that shows who can read, write or deny across a folder or registry tree.
- ShareEnum: lists every file share in the domain and its permissions; find open shares with sensitive data.
accesschk -a * "SeDebugPrivilege" # who holds a user right
accesschk -c * -w "Authenticated Users" # services ordinary users can change
accesschk -s -w CORP\helpdesk D:\Shares # folders helpdesk can write
Sysmon
A driver and service that logs process creation with hashes and command lines, network connections, driver loads, registry changes and more to the Microsoft-Windows-Sysmon/Operational log. On DCs and admin workstations it shows what ran and where it connected, which complements the Security log for detecting credential theft and lateral movement.
sysmon64 -accepteula -i sysmonconfig.xml # install with a community or in-house config
sysmon64 -c sysmonconfig.xml # update the config
General tools that help on DCs
| Tool | AD scenario |
|---|---|
| Process Monitor | Trace file, registry and network activity during a slow logon, a failing GPO extension or a script in SYSVOL. |
| Process Explorer | See which process on a DC uses CPU (often lsass.exe), its threads and loaded DLLs. |
| TCPView | Live connections to ports 88, 389, 636, 445, 3268 and the RPC range. |
| PsExec | Run a command on a remote machine, or as SYSTEM (psexec -s) to test computer-account access. Use carefully; attackers use it too. |
| PsService | Query and control services like Netlogon, KDC and NTDS on remote DCs. |
| Autoruns | Find unexpected auto-start entries on DCs (persistence check). |
| Sigcheck | Verify signatures and versions of files on DCs; check against VirusTotal. |
| Disk2vhd | Capture a physical server to a VHD for lab analysis. Never boot a captured DC on the production network. |
Back to the course overview, or continue with Group Policy on gpo.cloudschool.ai.