Citrix security is a joke
Last year I worked nine months on a project as a UX designer. Access to email and MS Teams was only possible via Citrix, which worked ok. But most of the time I worked locally on my Mac with Sketch. Every now and then, when I wanted to check my emails, I found the Citrix/Window session locked:
Please enter your password
If no activity was detected, Windows was locked and of course I did not have the permission to change that behavior. Great! I was sure I would not survive the nine months like this.
Thanks god there is Google and StackOverflow. There I found a small Visual Basic script with just 6 lines of code, that solved my problem:
Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
Do While True
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
Wscript.Sleep (6000)
Loop
The script is triggering the numlock key every 6 seconds and that is preventing the autolock. Breaking security can be so simple.