Thread: Automatically shut down server
-
March 11th, 2012, 12:15 PM #1
Automatically shut down server
I'm got a home server running WinXP Home that I use to share files and the printer. Currently, it runs 24/7. I'd like to have it shut itself down late at night and then restart the following morning. I'd like to do this both to save energy and give the computer a periodic shutdown.
I set up a scheduled task using shutdown.exe. That command works if I run from the run menu and the scheduled task works if I run it.
This morning, the server was on before it should have turned itself on (from the settings in the bios). I'm thinking that it may not have shut down the night before because after the first shutdown and restart, the server will stop at the login screen. I'm assuming that since no one is logged in, the computer has not been running the scheduled task.
Does that sound right? Any way around this, i.e., shutting down on a schedule even if the computer is at the login screen?" ... and you'll need a good companion for the ride ..."
Bruce Springsteen, Land of Hope and Dreams
-
March 12th, 2012, 04:17 AM #2
Hi,
What are the options you've got configured in your 'shutdown' script/command/task..?
One thing to just check is whether the scheduled task has the "run even if nobody is signed in" box...as it won't work if you aren't logged in..
Also, have you recently changed the password used by whatever account the script is set to use......?I've seen the light... It was green, flashy and attached to a Network Interface Card...Whenever someone says "You can't miss it", I invariably do...
-
March 12th, 2012, 06:41 PM #3
You could do a remote shutdown command from another computer that does run 24/7 using powershell ...
-
March 12th, 2012, 10:55 PM #4" ... and you'll need a good companion for the ride ..."
Bruce Springsteen, Land of Hope and Dreams
-
March 12th, 2012, 10:56 PM #5
-
March 13th, 2012, 03:22 AM #6
What happens if you open your Scheduled Tasks panel, right-click that, and select "Run now"..?
(Sorry if my words don't match what they are in XP, but I haven't used that for a while)
What should happen, if it still likes the settings (which look fine) is that it should power down after a one minute [as per the command] delay...I've seen the light... It was green, flashy and attached to a Network Interface Card...Whenever someone says "You can't miss it", I invariably do...
-
March 13th, 2012, 05:28 PM #7
If I select "run now", the computer shuts off after 60 seconds. However, if I am logged off (the server has accounts enabled to protect it), it does not shut down. Double checked that last night.
" ... and you'll need a good companion for the ride ..."
Bruce Springsteen, Land of Hope and Dreams
-
March 13th, 2012, 06:24 PM #8
perhaps i wasnt clear. The only thing you would need is a computer to be on and to start a script that run in the background like a service that awaited a set time to send the shutdown command to your server. In addition, if you got creative with it, you could potentially find out how to send a wake on network command to the servers nic so it would turn back on. Powershell does require you to double-click, press enter or what ever but can run entirely autonomous and behind the scene.
I have personally created scripts that rebooted a server used for specific functions, tested to see if the services required were running, sent an email report with stats on how long it took to reboot and if there were any errors and then move to the next server in my list so i know that the functionality is there if you want to use it.
-
March 14th, 2012, 03:45 AM #9I've seen the light... It was green, flashy and attached to a Network Interface Card...Whenever someone says "You can't miss it", I invariably do...
-
March 14th, 2012, 01:43 PM #10
When I first read nemowolf's post, I thought the same thing. When he explained further, I realized we have an ancient Win2k laptop in the kitchen that runs 24/7 for looking up phone numbers, etc.
So, how would I run this script or alternatively, what I am missing with shutdown.exe?" ... and you'll need a good companion for the ride ..."
Bruce Springsteen, Land of Hope and Dreams
-
March 15th, 2012, 03:24 AM #11
I'm not 100% whether W2k has the relevant shutdown that would work on the newer OS levels, but you would need to use a "-m \\<target_computer>" tag in the command.
Try it out by from the other machine, type in "shutdown /?" and you'll see all the available options and some examples...
I've seen the light... It was green, flashy and attached to a Network Interface Card...Whenever someone says "You can't miss it", I invariably do...
-
March 15th, 2012, 08:32 PM #12
-
March 16th, 2012, 11:03 AM #13
If wikipedia is correct, powershell won't work on Win2k. Back to the drawing board.
Windows PowerShell - Wikipedia, the free encyclopedia" ... and you'll need a good companion for the ride ..."
Bruce Springsteen, Land of Hope and Dreams
-
March 16th, 2012, 11:10 AM #14
Have you tried using the shutdown script from the W2k machine to the XP 'server' yet..?
I've seen the light... It was green, flashy and attached to a Network Interface Card...Whenever someone says "You can't miss it", I invariably do...
-
March 17th, 2012, 02:13 PM #15
I did, but it did not work. I have no doubt I may have gotten the syntax incorrect. However, when I typed in shutdown.exe /?, I got a command not found message. Can you shoot me the full correct syntax and I can try again?
" ... and you'll need a good companion for the ride ..."
Bruce Springsteen, Land of Hope and Dreams
-
March 19th, 2012, 04:32 AM #16
Hmmm....if it says that "command not found" then it means that the shutdown EXE file isn't known on your computer.
I've got a guide that I'm in the middle of updating on my sub-site, let me update it later, and maybe that will help.......
I've seen the light... It was green, flashy and attached to a Network Interface Card...Whenever someone says "You can't miss it", I invariably do...
-
March 20th, 2012, 10:47 AM #17
Download Free Windows 2000 Resource Kit Tools
You can get the shutdown.exe from the Windows 2000 Resource Kit tools
-
March 30th, 2012, 10:33 AM #18
Sorry for the late reply; it took me a little effort to get shutdown.exe on the laptop. I tried to do the shutdown of the server remotely and got the "Initiate System Shutdown failed" error. I tried to shutdown locally and the command worked (I got the "do you really want to shutdown" message). I'm wondering if I need to create a user account on the laptop that matches the admin account on the server in order to have the command go through.
" ... and you'll need a good companion for the ride ..."
Bruce Springsteen, Land of Hope and Dreams
-
March 30th, 2012, 10:42 AM #19
Yup, since you arent part of a domain the remote computer has no idea who you are or what premissions you have to its system operation
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Random rig shut down then power back on automatically
By Amoun in forum Technical SupportReplies: 7Last Post: February 19th, 2011, 03:29 PM -
Shut off automatically?
By Hungrycookpot in forum General Tech DiscussionReplies: 7Last Post: September 15th, 2004, 12:20 AM -
PC cant shut down automatically
By Yuu in forum General Tech DiscussionReplies: 14Last Post: July 30th, 2004, 05:31 PM -
Automatically logon in Win2k3 Server
By willy_ph in forum Applications and Operating SystemsReplies: 4Last Post: October 31st, 2003, 01:45 PM -
Windows 2003 server: Remove the shut down message box!?
By gicio in forum Applications and Operating SystemsReplies: 5Last Post: August 10th, 2003, 10:56 PM



LinkBack URL
About LinkBacks



Reply With Quote



I know there is plenty of tutorials for putting Snow Leopard on a PC but I couldn't find one particular to what I have. I have a Laptop with Windows 7 on it. I really don't use it for anything and...
Snow Leopard on a PC