Solved

shutdown script does not run with remote shutdown

Posted on 2008-06-10
3
284 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
[X]
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
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
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…
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.

733 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