+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
Scripts Thread, Script to shutdown computers. in Coding and Web Development; I've recently started using psshutdown to switch off groups of computers at the end of the day. But I'd prefer ...
  1. #16
    BJG
    BJG is offline

    Join Date
    May 2008
    Location
    Norwich
    Posts
    323
    Thank Post
    53
    Thanked 24 Times in 18 Posts
    Rep Power
    15
    I've recently started using psshutdown to switch off groups of computers at the end of the day. But I'd prefer not to shut down any computers that are logged in. Methinks a bit of scripting with psloggedon will be necessary. Anyone set things up like this...?

  2. IDG Tech News

  3. #17


    Join Date
    Jan 2006
    Posts
    6,457
    Thank Post
    324
    Thanked 740 Times in 557 Posts
    Rep Power
    201
    Some kind edugeeker wrote this batch file:

    Code:
    at | find "shutdown.exe" > c:\atlist.txt
    for /F "tokens=1" %%a in (c:\atlist.txt) do at %%a /delete
    at 23:15 /every:m,t,w,th,f,s,su %SystemRoot%\system32\shutdown.exe -s -t 0 -f
    I call it as a startup script from GPO to ensure computers are shutdown at 23:15

  4. #18

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 774 Times in 647 Posts
    Rep Power
    168
    Shutdownertron, whilst it isn't user-aware, does allow a user to override it so that they can carry on uninterrupted, and has a variable delay on it.

  5. #19
    BJG
    BJG is offline

    Join Date
    May 2008
    Location
    Norwich
    Posts
    323
    Thank Post
    53
    Thanked 24 Times in 18 Posts
    Rep Power
    15
    Thanks for the replies. Does that script avoid computers that are logged in, while shutting down ones that are logged out...? If so, how does it work...?
    Last edited by BJG; 17th November 2008 at 04:50 PM.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Script to add computers to AD like RIS
    By box_l in forum Scripts
    Replies: 2
    Last Post: 4th June 2008, 08:34 PM
  2. Shutdown batch script stalls if 1 PC is shut down
    By PrimaryTech in forum Scripts
    Replies: 8
    Last Post: 7th July 2007, 06:04 PM
  3. Replies: 3
    Last Post: 23rd March 2007, 10:36 AM
  4. VBS script for prestaging computers anyone?
    By ChrisH in forum Scripts
    Replies: 7
    Last Post: 23rd June 2006, 09:59 AM
  5. Replies: 18
    Last Post: 14th October 2005, 09:28 AM

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
  •