Find locked out user accounts in Active Directory using PowerShell

Sdílet
Vložit
  • čas přidán 6. 07. 2024
  • This video will teach you how to find and troubleshoot locked user accounts in Active Directory using PowerShell. We will cover the Search-AdAccount cmdlet, how to find the domain controller with the PDC emulator role, and how to retrieve the username and computer name associated with the bad authentication request using the Get-WinEvent cmdlet. We will also cover how to unlock accounts using the Unlock-ADAccount cmdlet.
    To search all locked-out accounts in AD----
    Search-AdAccount -LockedOut
    To find the PDC emulator role holder-----
    Get-ADDomain
    Searching for Locked Account in the Event Log-----
    Get-WinEvent -FilterHashTable @{'LogName' ='Security';'Id' = 4740}
    Searching for Locked Account in the Event Log by parsing the username and computername-----
    $filter = @{'LogName' = 'Security';'Id' = 4740}
    Get-WinEvent -FilterHashTable $filter | Select-Object @{'Name' ='UserName'; Expression={$_.Properties.value[0]}}, @{'Name' ='ComputerName';Expression={$_.Properties.value[1]}}
    Chapters:
    *********
    - Introduction (00:00)
    - Finding locked user accounts using Search-AdAccount cmdlet (00:31)
    - Finding the PDCe Role Holder (01:16)
    - Searching for Locked Accounts in the Event Log (01:40)
    - Parsing the Username and Location (02:30)
    - Troubleshooting the root cause of account lockout (03:30)
    - Unlocking locked user accounts using Unlock-ADAccount cmdlet (03:45)
  • Věda a technologie

Komentáře • 1

  • @d13x001
    @d13x001 Před 11 měsíci +1

    Genuinely a well-made video. Clear, to the point, demonstrates the THING clearly. I love how he uses bigger fonts and cursor and really changes his desktop to make it easily readable.
    No computer voices or text in notepad to communicate.
    No massive intro with obnoxious music.
    Gives the cmdlets in the description as well as timestamps.
    I hope your channel is still active and you continue to grow.