NTLM Auditing - Event logs

Bob Pants 261 Reputation points
2023-11-02T04:22:30.0033333+00:00

I recently enabled autiting of NTLM events. I am just trying to understand the output from the security log Microsoft\NTLM logs view.

I am seeing multiple events with the same device listed in Secure Channel name with different workstations.

Which is the item I need to be concerned about? the S-Channel or Workstation?

The event looks something like this. So, I might have 50 events from the same S-Channel name but differing workstation names

Domain Controller Blocked Audit: Audit NTLM authentication to this domain controller.

Secure Channel name: Server-1

User name: Bob

Domain name: Mydomain

Workstation name: Server-2

Secure Channel type: 2

Audit NTLM authentication requests within the domain mydomain that would be blocked if..

I've tried a couple of different PS scripts I found online to interrogate these logs, neither work. one only lists the same S-Channel name in every item the other returns nothing.

example: (lists the same entry repeatdly)
$Events = Get-WinEvent -Logname security -FilterXPath "Event[System[(EventID=4624)]]and Event[EventData[Data[@Name='LmPackageName']='NTLM V1']]" | Select-Object `

@{Label='Time';Expression={$_.TimeCreated.ToString('g')}},

@{Label='UserName';Expression={$_.Properties[5].Value}},

@{Label='WorkstationName';Expression={$_.Properties[11].Value}},

@{Label='LogonType';Expression={$_.properties[8].value}},

@{Label='ImpersonationLevel';Expression={$_.properties[20].value}}

$Events | Out-GridView

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-11-03T07:23:59.12+00:00

    Hi,

    You need to append a backtick (`) character to each line of a command if it's split into multiple lines. Please see if this works.

    $Events = Get-WinEvent -Logname security -FilterXPath "Event[System[(EventID=4624)]]and Event[EventData[Data[@Name='LmPackageName']='NTLM V1']]" | Select-Object `
    @{Label='Time';Expression={$_.TimeCreated.ToString('g')}}, `
    @{Label='UserName';Expression={$_.Properties[5].Value}}, `
    @{Label='WorkstationName';Expression={$_.Properties[11].Value}}, `
    @{Label='LogonType';Expression={$_.properties[8].value}}, `
    @{Label='ImpersonationLevel';Expression={$_.properties[20].value}}
    $Events | Out-GridView
    

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.