guyrleech

Record Citrix client auto reconnections in real time

Jan 16th, 2020
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $last=$null ; while( $true ) { $latest = Get-CimInstance -ClassName Citrix_Euem_AutoReconnect -Namespace root\citrix\euem ; if ( ! $last -or $latest.TimeStamp -gt $last.TimeStamp ) { Get-Date;$latest;$last=$latest;$last|export-csv -NoTypeInformation -Append autoreconnect.csv};start-sleep -Seconds 15}
Add Comment
Please, Sign In to add comment