Link to home
Start Free TrialLog in
Avatar of fcps
fcpsFlag for United States of America

asked on

VB Script scheduled task for shutdown not prompting

I have a vb script that was pushed out as a scheduled task to prompt users for a shutdown of their machine.  If they click yes to the message box displayed it shutsdown the computer, if they click no it snoozes for 2 hours.  The script works great if an admin is logged on, however when users are logged on it does not prompt when run as a scheduled task.  You can manually launch the script and it will prompt but it won't when it runs as a scheduled task.

In testing I've given the users access to scheduled tasks in the control panel and also access to the vbs script.

Originally I thought it was because they could not see the scheduled task it would not prompt so i granted rights to C:\windows with a test account and it still didn't show the message.  I can provide any details needed, thanks for the help.
Avatar of scraby
scraby

if you go to the local machine and open control panel to scheduled tasks, open the task properties and under the task tab you have the option to run as and set the password.  i believe you are giving access to the task using the mentioned above but perhaps you need to run the task with admin privalages.  see attached
task-properties.png
Avatar of fcps

ASKER

It is running as an administrator
ASKER CERTIFIED SOLUTION
Avatar of CharlWiehahn
CharlWiehahn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fcps

ASKER

Thanks, we are looking into using this now