+ Post New Thread
Results 1 to 4 of 4
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 ...
  1. #1
    gshaw's Avatar
    Join Date
    Sep 2007
    Location
    Essex
    Posts
    2,604
    Thank Post
    154
    Thanked 205 Times in 190 Posts
    Rep Power
    64

    Question Logging psshutdown?

    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?

    Thanks
    Last edited by gshaw; 23rd April 2008 at 12:43 PM.

  2. #2

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,144
    Thank Post
    113
    Thanked 518 Times in 447 Posts
    Blog Entries
    2
    Rep Power
    121
    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!

  3. #3
    gshaw's Avatar
    Join Date
    Sep 2007
    Location
    Essex
    Posts
    2,604
    Thank Post
    154
    Thanked 205 Times in 190 Posts
    Rep Power
    64
    From digging through the policies it seems the previous admin has restricted "access this computer over the network" and a few others through User Rights Assignment on the Computer GPO. Other machines were making out that they weren't contactable (as in psshutdown could't get a response) yet when I ran the script one by one they shut down OK - script runs with admin rights so shouldn't have a problem there. It's currently set as a scheduled task.

    Gonna reset those policies back to Not Defined when I build up a new policy for the Teaching Machines, to go with the new shiny mandatory profiles I'm using rather than HDGuard (similar to Deepfreeze) and setting each machine's user settings manually ()

    No more AntiVirus update problems and ability to use SMS software distribution without worrying HDGuard's there ready to wipe it on reboot
    Last edited by gshaw; 23rd April 2008 at 02:48 PM.

  4. #4
    steve's Avatar
    Join Date
    Oct 2005
    Location
    West Yorkshire
    Posts
    1,040
    Thank Post
    22
    Thanked 175 Times in 121 Posts
    Rep Power
    51
    How about a scheduled task about 30 mins later:

    net view > pcslefton.txt

    combine this with bmail to email the log to yourself.

SHARE:
+ Post New Thread

Similar Threads

  1. PsShutdown help needed!
    By tech_guy in forum Windows
    Replies: 13
    Last Post: 17th February 2010, 11:29 PM
  2. Web Logging
    By gh256 in forum How do you do....it?
    Replies: 30
    Last Post: 22nd January 2009, 03:09 PM
  3. Logging onto the network after logging on locally
    By frankybaloney in forum Windows
    Replies: 9
    Last Post: 10th October 2008, 12:17 PM
  4. OWA + Logging on
    By faza in forum Wireless Networks
    Replies: 6
    Last Post: 31st January 2008, 06:43 AM
  5. Call Logging
    By garibaldi in forum General Chat
    Replies: 5
    Last Post: 13th March 2006, 10:18 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
  •