

$eventsource = "Citrix.LogonSimulator" #Align the value with the one you edited in the Python script $EventLogSourceParams = 'Application' Source = $eventsource }īefore running the logon simulator, you must edit some variables to adapt it to your environment: Once all those pre-requisites are installed, you must run the following command in PowerShell to download the modules required to run Citrix Logon Simulator (the machine you running the script on must have internet access): you MUST enable HTML5 receiver as the script does not rely on Citrix Workspace App.Geckodriver, aligned with Firefox version you installed ( Github repository).Tesseract installation folder added to Windows PATH environment variable.To run the script, you must have the following pre-requisites: Python is way better in automation than PowerShell. So I let it on a corner of the table for a better day. I know, I could have used Windows 10 but I wanted to have it on a Windows Server! OCR is bound to a component only available on desktop OS. Then I tried on a Windows Server (because I use a server for some monitoring scripts).

It does, by default! Windows 10/11 can do a screenshot in PowerShell and run some OCR on it. Thought it was genius and wondered if Windows could do something like that (I already had the logon simulator in mind but didn’t know how to do it). One day, I read about a guy automating an MFA form by doing OCR on his Mac.

I found version 3.8 of the package resolves the issue.

Note: I recommend you to read the following post but if you’re only interested by the script: here it is.Įdit : Sometimes, selenium can be a bit annoying.
