KACE Product Support Question
Run script as user at login
09/09/2015 3852 views
Is there any way to have a script run as the user at login? Using an offline kscript runs at login time, but as the system user. Running on online script allows it to run as logged in user, but has no option to run at login.
Community Chosen Answer
Please log in to answer
My thinking is that you utilise the scheduler on the machine to run your script once a month when the user is logged in. I don't know whether it is vital to run your script as the user logs in or whether you could set a runtime such as 10am. If it is important to run the script as the user logs in then it could be accomplished by using the scheduler to write a file somewhere where the user has full rights, and then having a task run at every login which does the following:
1. Check for flag file - if it does not exist then terminate script
2. If flag file exists, run script then delete flag file.
Answered 09/09/2015 by: EdT