Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Gather data from Secure Channel (schannel) negotiation events
- ## Enable logging via EventLogging REG_DWORD = 1 in HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL
- ## Get cipher suites so we can look them up for each event
- $csuites = Get-TlsCipherSuite
- ## Get the events and use the "properties" array, which is used to construct the message, to show individual elements
- Get-WinEvent -FilterHashtable @{ ProviderName = 'Schannel' ; Id = 36880 } | select timecreated,@{n='Type';e={$_.Properties[0].value}},@{n='TLS';e={$_.Properties[1].Value }},@{n='CipherSuite';e={($csuites|Where CipherSuite -eq $_.Properties[2].Value).Name}} ,@{n='TargetName';e={$_.Properties[5].value}},@{n='Local Cert Subject';e={$_.Properties[6].Value}},@{n='Remote Cert Subject';e={$_.Properties[7].Value}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement