PrimaryTech Posted June 23, 2007 Posted June 23, 2007 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!
ChrisH Posted June 23, 2007 Posted June 23, 2007 Parse the output of a ping command to see if host is alive before thtryingt o shut it down.
PiqueABoo Posted June 23, 2007 Posted June 23, 2007 Much of a muchness, but if it's a script, I think it's slightly nicer to use a WMI Win32_PingStatus query
ajbritton Posted June 24, 2007 Posted June 24, 2007 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.
Guest Guest Posted June 24, 2007 Posted June 24, 2007 Or just use this http://www.specopssoft.com/products/specopsgpupdate/
Guest Posted June 25, 2007 Posted June 25, 2007 we use http://www.microsoft.com/technet/sysinternals/utilities/psshutdown.mspx works well
PrimaryTech Posted July 7, 2007 Author Posted July 7, 2007 Cheers guys! I tried the psshutdown and it works great, now just gotta implement WoL to get them back up automatically...
mrcrazy04 Posted July 7, 2007 Posted July 7, 2007 I use the ASP version of this for my Wake On LAN portion of my ASP based management console.
kearton Posted July 7, 2007 Posted July 7, 2007 We use this: http://users.pandora.be/jbosman/poweroff/poweroff.htm
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now