Identify where user is being locked out from.
This commit is contained in:
@@ -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##
|
||||
cls
|
||||
# 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
|
||||
$pdcemulator = (Get-ADDomain).PDCEmulator
|
||||
$DomainControllers = Get-ADDomainController $pdcemulator | Select-Object -ExpandProperty HostName
|
||||
|
||||
Reference in New Issue
Block a user