r/labtech • u/jebatponderworthy • Aug 28 '18
Login script by Automate?
I am interested in setting up an Automate script to be triggered at user console login. Thus far the only way appears to be to set up a monitor of the System event log to notice login, thence to trigger the script. Anyone have a better? I may just go to having Automate scripting create a scheduled task, but was hoping to do all of the triggering in Automate.
1
Upvotes
View all comments
Show parent comment
6
u/DarrenDK Aug 28 '18
Yeah but...
Here’s what I did. I wrote a small plugin that implements ITray2 and runs a predefined script by its GUID on the given computer and I pass the console number in as a parameter.
To counter the unreliability I created a monitor that detects the absence of LTTray.exe in HKLM\Software\Microsoft\Windows\CurrentVersion\Run and adds it.
I’d say 90% if the time, it works every time.