PowerShell Lab
Build, find and save PowerShell
Reviewed templates and commands with requirements, permissions and risk spelled out. Nothing here runs anything — you copy, review and run it yourself.
Search pages, tools, PowerShell commands and ports
Event 4740 on the PDC emulator shows the computer causing a lockout.
1#Requires -Modules ActiveDirectory2$pdc = (Get-ADDomain).PDCEmulator3Get-WinEvent -ComputerName $pdc -FilterHashtable @{ LogName = 'Security'; Id = 4740 } -MaxEvents 50 |4 Select-Object TimeCreated,5 @{ Name = 'User'; Expression = { $_.Properties[0].Value } },6 @{ Name = 'CallerComputer'; Expression = { $_.Properties[1].Value } }Then check the caller computer for mapped drives, services, scheduled tasks or phones with the old password.