Solved

shutdown script does not run with remote shutdown

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
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 video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now