Identify where user is being locked out from.

This commit is contained in:
2025-09-24 02:35:52 +00:00
parent 3c40b605d4
commit b97ee7f838

View File

@@ -1,7 +1,7 @@
## Created by Zak Bearman - Intel - Datacom - For use on any domain that WinRM is enabled and supported for remote log searching## ## Created by Zak Bearman - Intel - Datacom - For use on any domain that WinRM is enabled and supported for remote log searching##
cls cls
# Define the username you are searching for # Define the username you are searching for
$username = read-host "Please enter users XL Account or Non XL account" # Replace with the username of the locked-out user $username = read-host "Please enter users account" # Replace with the username of the locked-out user
# Get the PDC Emulator # Get the PDC Emulator
$pdcemulator = (Get-ADDomain).PDCEmulator $pdcemulator = (Get-ADDomain).PDCEmulator
$DomainControllers = Get-ADDomainController $pdcemulator | Select-Object -ExpandProperty HostName $DomainControllers = Get-ADDomainController $pdcemulator | Select-Object -ExpandProperty HostName