Analyze RDP Disconnection Logs using PowerShell
The PowerShell script is designed to extract information about Remote Desktop Protocol (RDP) local session manager events from the Windows event logs on a RDS host and save it to a CSV file. Script: Get events with EventID 40 from Microsoft-Windows-TerminalServices-LocalSessionManager/Operational Event Log $RDPAuths = Get-WinEvent -LogName ‘Microsoft-Windows-TerminalServices-LocalSessionManager/Operational’-FilterXPath ‘<QueryList><Query Id=”0″><Select>*[System[EventID=40]]</Select></Query></QueryList>’ [xml[]]$xml = $RDPAuths | ForEach-Object…
Read More Analyze RDP Disconnection Logs using PowerShell