07y05m29d Posted May 29, 2007 Report Share Posted May 29, 2007 Problems scheduling hibernation under Microsoft Windows XP SP2. (similar to http://pgmacros.com/community/index.php?showtopic=2018) I've setup a script that uses AT.Exe & PSShutDown.Exe (both Microsoft/SysInternals) to setup a Task Scheduler JOB intended to hibernate the computer at a specific time. (this is actually a SLEEP TIMER script for WinTV) The problem is, like all services, Scheduler runs under SYSTEM access rights and therefore any command it launches will also not have the hibernation privledge. So in place of PSShutDown I created an exported MXE file named "Hibernate", of course containing MacEx's Hibernate command; then pointed the Scheduler service to launch at a specific time. I assumed that MacEx already running under USER rights would read the file and initiate hibernation. Instead, a seperate copy of MacEx is launched by association to read the file and execute the command... of course resulting in privledge declination. Do you know of any way to accomplish this ? . . . Even though when MacEx is launched under SYSTEM access interactively, it still cannot seem to interact with desktop applications such as explorer... which can of course, initiate hibernation. I have even tried running the Scheduler service under USER rights only to find that causes other problems. The only other option I can think of, is to setup the script to create a scheduled macro to be executed at a specified time. But there doesn't appear to be a way to accomplish this. From what this person is saying, http://pgmacros.com/community/index.php?showtopic=2018 another unexplored alternative might be to point the scheduler service toward launching a VBS (visual basic script) file which will in-turn call upon PSShutdown or the custom MXE file ??? Been racking my brain over this and will *not* place my password on a commandline with PSExec... the only other unexplored work-around. Input appreciated. Quote Link to comment Share on other sites More sharing options...
paul Posted May 31, 2007 Report Share Posted May 31, 2007 I must admit to not understanding your problem, but then I always run as the Administrator anyway, and have no problems scheduling a script to hibernate or restart the computer. However, I suggest you visit the following site and take a look at BeyondExec or Shutdown (both freeware) - either will do what you want. http://www.beyondlogic.org/ Quote Link to comment Share on other sites More sharing options...
07y05m29d Posted June 9, 2007 Author Report Share Posted June 9, 2007 Hi Paul. For years I've assumed SysInternals was it, never knowing that BeyondExec exists and seems to be "the original". Your tip is *much* appreciated. BE's shutdown tool works flawlessly when scheduled. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.