Screenconnect modify commands timeout powershell format
#!ps
#maxlength=100000
#timeout=90000
echo "DIAGNOSTIC-RESPONSE/1"
echo "DiagnosticType: EventLog"
echo "ContentType: xml"
echo ""
$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size (500, 25)
Get-EventLog Application -newest 10 | Select TimeWritten, EntryType, Source, Message | Sort TimeWritten -Descending | ConvertTo-Xml -As Stream