you can set disable actions from the various session events that take place as well. these events should take place when using Microsoft RDP and you start a remote session.
as an example if you start an RDP session you will get
and if hat session is a console session you will also get this event
and when the session disconnects
and if that session was a console session
other session events. don't know what may or may not get triggered here
Keep up to date with EG related information here.