How do I add 'if restart/log off:continue script''
11/01/2016 749 views
Hi I am combing two scripts; one that removes local admin from the logged in user, then run ksleep for 10 minutes, then run the script that removes admin from local user. The problem is; if the user restarts at any time during the script, it breaks:
The idea is to grant admin for around 1.5 hours for short installs and 4 hours for installations of our software using ksleep between the two scripts. But as I mention, if there is a log off/reboot anywhere during the job it fails.
Thanks for any help.