Skip to main content

Filter for client IP in RDSH sessions

Planned

Comments

1 comment

  • Official comment
    Steven Hajek

    Hi Clark, thank you for the feedback and note about the View Client IP not applying to RDS-based cases!  We have a "TS Client IP" Filter Condition set for our next release.  At the time of writing, this will be 6.9.5, due in Q4 this year. 

    In the mean time, you may be able to use the PowerShell Filter Condition to call a script that does something to this effect:  (its one long line/cmd)

    (Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational'; ID=1149; StartTime=(Get-Date).AddDays(-31);} | ForEach-Object {[PSCustomObject] @{User=$.Properties[0].Value; IPAddress=$.Properties[2].Value; TimeCreated=$_.TimeCreated;}} | Where-Object User -eq $env:USERNAME | Sort-Object -Property TimeCreated -Descending | Select-Object -First 1).IPAddress

    Hope this helps!

Please sign in to leave a comment.