Runing python-script after winlogon.exe

434 Views Asked by At

I'm trying to run the python script right after the user is logged in. I tried the batch file that runs the script to add to the task scheduler with the trigger "at login", but the script also runs after the windows is fully loaded, the desktop appears and after a while. Is it possible to somehow increase the priority of executing a script (or exe-shnik) or just to run it immediately after the user login appeared in the system (for example, after running winlogon.exe)?

1

There are 1 best solutions below

0
On

Paste here : C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp

else try to load Desktop before logging in + StartUp

else make your own credential Provider and launch your script before calling to LogonUserEx (a little overkill ?)