+ 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
    BJG's Avatar
    Join Date
    May 2008
    Location
    Norwich
    Posts
    465
    Thank Post
    89
    Thanked 35 Times in 25 Posts
    Rep Power
    22
    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. #17


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    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

  3. #18

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    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.

  4. #19
    BJG
    BJG is offline
    BJG's Avatar
    Join Date
    May 2008
    Location
    Norwich
    Posts
    465
    Thank Post
    89
    Thanked 35 Times in 25 Posts
    Rep Power
    22
    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 03: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, 09: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
  •