Windows Thread, Logging psshutdown? in Technical; I'm using psshutdown on our teaching PCs to shut them down after 10pm but would like to log the results ...
23rd April 2008, 12:38 PM #1
I'm using psshutdown on our teaching PCs to shut them down after 10pm but would like to log the results of the batch file as some aren't working, I think due to some odd security settings from a while back.
Tried piping the cmd batch file output to a text file but it only shows the commands psshutdown runs e.g. shutting down PC06 but no output e.g. shutdown successful
Anyone got a logging system set up?
Last edited by gshaw; 23rd April 2008 at 12:43 PM.
IDG Tech News
23rd April 2008, 02:28 PM #2
Not sure that you'll be able to do this - I think that all psshutdown does is to tell the computer to shut down and, provided that the PC accepts this, then you get "OK" back. If it fails to shutdown (eg box pops up saying "Save your work?" then psshutdown will know nothing about it.
What you could do is wait (say) 5 minutes and then try and ping the machines you tried to shut down; if they reply then your shutdown failed.
When you say "odd security settings", do you know what or is this one of those things you've inherited?? I know you can prevent an interactive shutdown and you can prevent remote RPC connections but I can't think of anything else!
23rd April 2008, 02:42 PM #3
23rd April 2008, 08:11 PM #4
How about a scheduled task about 30 mins later:
net view > pcslefton.txt
combine this with bmail to email the log to yourself.
By tech_guy in forum Windows
Last Post: 17th February 2010, 11:29 PM
By gh256 in forum How do you do....it?
Last Post: 22nd January 2009, 03:09 PM
By frankybaloney in forum Windows
Last Post: 10th October 2008, 12:17 PM
By faza in forum Wireless Networks
Last Post: 31st January 2008, 06:43 AM
By garibaldi in forum General Chat
Last Post: 13th March 2006, 10:18 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)