Solved

shutdown script does not run with remote shutdown

Posted on 2008-06-10
3
282 Views
Last Modified: 2008-07-30
We have a shutdown script which runs fine when the user turns off the computer manually. The script does also run when a user is logged on to a computer and a remote shutdown command is sent to the computer. The script doesn't run when nobody is logged on to the computer and a remote shutdown is sendto the computer. Can anybody explain this behavior?
0
Comment
Question by:fbict
3 Comments
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 250 total points
ID: 21805868
What you are seeing is exactly what one would expect on an M$ OS.  Someone has to be logged into the computer, in order for the OS to run a script.  i.e scripting needs to be run by a user.  If you want to get around this, you can either run the script as a SERVICE -- which means the OS itself is the "owner" and runner of the script, log a person logged in.  The other way is to use a Task Scheduler which is also a SYSTEM service, and it can run scripts without a user being logged in.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Microsoft Open Licence Loophole 10 65
Remove system folder in W10 Home 5 63
AS400  SNDDST Truncating 5 94
Windows 8 rebooted without shutting down first error message 11 77
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question