none
AD Account keeps locking out RRS feed

  • Question

  • Using Poweshell;

    ## Define the username that’s locked out
    $Username = ‘first.last’
    ## Find the domain controller PDCe role
    $Pdce = (Get-AdDomain).PDCEmulator
    ## Build the parameters to pass to Get-WinEvent
    $GweParams = @{
         ‘Computername’ = $Pdce
         ‘LogName’ = ‘Security’
         ‘FilterXPath’ = "*[System[EventID=4740] and EventData[Data[@Name='TargetUserName']='$Username']]"
    }
    ## Query the security event log
    $Events = Get-WinEvent @GweParams

    When I run this script, I got "The RPC server is unavailable"


    Tuan

    Monday, January 11, 2016 9:55 PM

Answers

All replies