Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

shutdown script does not run with remote shutdown

Posted on 2008-06-10
3
283 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Often we come across situations wherein our batch files would be needing to reboot Windows for a variety of reasons. A few of them would be like: (1) Setup files have been updated whose changes can take effect only after a reboot …
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.

840 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