Scripts Thread, Shutdown batch script stalls if 1 PC is shut down in Coding and Web Development; Hi there.
Currently I am using a batch file consisting of a list of shutdown commands to shutdown our ICT ...
-
23rd June 2007, 08:51 PM #1
- Rep Power
- 0
Shutdown batch script stalls if 1 PC is shut down
Hi there.
Currently I am using a batch file consisting of a list of shutdown commands to shutdown our ICT suite (17 PC's all XP SP2). I am finding that if one of the PC's has been shutdown prior to the batch file running the batch file hangs at the command to shutdown that PC.
Has anybody got a solution/command/workaround that will ignore/skip PC's that are already shutdown? I know its only 17 PC's and they're all in 1 room but I want to run the script as a scheduled task.
Any ideas welcome!
-
-
IDG Tech News
-
23rd June 2007, 09:07 PM #2 Re: Shutdown batch script stalls if 1 PC is shut down
Parse the output of a ping command to see if host is alive before thtryingt o shut it down.
-
-
23rd June 2007, 09:19 PM #3 Re: Shutdown batch script stalls if 1 PC is shut down
Much of a muchness, but if it's a script, I think it's slightly nicer to use a WMI Win32_PingStatus query
-
-
24th June 2007, 09:13 PM #4 Re: Shutdown batch script stalls if 1 PC is shut down
One possible way around this would be to add a scheduled task on each PC to perform a shutdown at a specific time. This could be installed/managed from a startup script.
-
-
24th June 2007, 09:52 PM #5 Re: Shutdown batch script stalls if 1 PC is shut down
-
-
25th June 2007, 08:13 AM #6 Re: Shutdown batch script stalls if 1 PC is shut down
-
-
7th July 2007, 03:07 PM #7
- Rep Power
- 0
Re: Shutdown batch script stalls if 1 PC is shut down
Cheers guys! I tried the psshutdown and it works great, now just gotta implement WoL to get them back up automatically...
-
-
7th July 2007, 04:41 PM #8 Re: Shutdown batch script stalls if 1 PC is shut down
I use the ASP version of this for my Wake On LAN portion of my ASP based management console.
-
-
7th July 2007, 06:04 PM #9 Re: Shutdown batch script stalls if 1 PC is shut down
-
SHARE:
Similar Threads
-
By pooley in forum Windows
Replies: 2
Last Post: 13th July 2007, 01:56 PM
-
By macca in forum Windows
Replies: 5
Last Post: 3rd May 2007, 09:20 AM
-
By kennysarmy in forum Scripts
Replies: 3
Last Post: 23rd March 2007, 10:36 AM
-
By eejit in forum Windows
Replies: 18
Last Post: 14th October 2005, 09:28 AM
-
By tosca925 in forum Scripts
Replies: 11
Last Post: 25th September 2005, 09:23 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules