1

I would be able to run powershell scripts when users disconnect or reconnect to their RDS/Citrix session.

The scripts must run from the session, with user privileges and environment vars.

I was using a small Citrix utility named Session State Monitor Tool, but this tool is no more supported and not always reliable.

Is there a Windows event, another tool or a Powershell command I could use ?

Dric
  • 61
  • 1
  • 3
  • 11

1 Answers1

0

You can create a scheduled task and use these triggers:

"On connection to user session"
"On disconnect from user session"

The scheduled task can be deployed via Group Policies Preferences for example (User Configuration -> Preferences -> Control Panel Settings -> Scheduled Tasks)

Swisstone
  • 6,357
  • 7
  • 21
  • 32