+ Post New Thread
Page 6 of 6 FirstFirst ... 23456
Results 76 to 83 of 83
Windows Thread, Software to shut down PC's? in Technical; Originally Posted by eean Here it is. Only works for XP. Hope it works. As we are getting a new ...
  1. #76

    Join Date
    May 2006
    Posts
    1,320
    Thank Post
    87
    Thanked 25 Times in 18 Posts
    Rep Power
    21

    Re: Software to shut down PC's?

    Quote Originally Posted by eean
    Here it is. Only works for XP. Hope it works.
    As we are getting a new computers with XP Pro across the entire school soon, my original issues are now resolved. I'm gonna download a copy of this and keep it for when the new computers are installed.

    Thanks for this

  2. IDG Tech News

  3. #77
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    550
    Thank Post
    89
    Thanked 81 Times in 65 Posts
    Rep Power
    55
    Quote Originally Posted by fooby View Post
    In a startup script (on our image that is cloned / or in a group policy startup script)

    Code:
    REM Delete all tasks (not needed, butin case some evil person already has)
    schtasks /delete /tn * /f 
    
    REM Create a task for this computer to shut itself down at 6pm
    schtasks /create /sc daily /st 18:00:00 /tn "Shutdown at 1800" /tr "shutdown -s -t 60 -c \"This computer is scheduled to automatically shutdown at this time.          You have 60 seconds to save all your work and logoff.\"" /ru system
    This way theres no "I need a list of pc's" or "use this tool just search google all day" these are all in windows already and just need to be run once per machine - or placed carefully in a startup script. (Note, this is used on WinXP clients, with 2000 YMMV)

    fooby
    Sorry for digging up such an thread. But the holiday is here and work must go on!

    This script works when i run it on my computer, but when i save it as a .bat and set it to a logon script it doesn't run.

    Could anyone shed any light?

    Mike

  4. #78
    eean's Avatar
    Join Date
    May 2006
    Location
    Kuala Lumpur
    Posts
    530
    Thank Post
    57
    Thanked 48 Times in 33 Posts
    Rep Power
    24
    Quote Originally Posted by linkazoid View Post
    This script works when i run it on my computer, but when i save it as a .bat and set it to a logon script it doesn't run.
    The logon script doesn't have admin rights to the local machine? You can't have non-admins able to create scheduled tasks that run with system rights - that'd be a huge security hole!
    Try creating an MSI that will execute your batch file. You can do this easily through Windows Installer Wrapper Wizard You can then pop this into active directory and it will run with elevated rights.

  5. #79

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    6,763
    Thank Post
    171
    Thanked 1,055 Times in 828 Posts
    Rep Power
    217
    I use the following tool which I schedule to run every evening.

    Save it in a folder called Remoteshutdown on any server. Now open up notepad and copy the following:

    Code:
    REM \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
    REM
    REM	  ICT Shutdown Script
    REM          Shutdown Time: time
    REM       Scheduled on servername
    REM       
    REM	     
    REM \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
            
    remoteshutdown.exe /remote:Computername /f
    remoteshutdown.exe /remote:Computername /f
    remoteshutdown.exe /remote:Computername /f
    remoteshutdown.exe /remote:Computername /f
    remoteshutdown.exe /remote:Computername /f
    remoteshutdown.exe /remote:Computername /f
    Replace Computername with your actual workstation names. Now save the file as Remoteshutdown.bat in the Remoteshutdown folder. Now run Scheduled Tasks and when prompted, choose the batch file you've just created to run at a select time, daily, with domain admin credentials.

    That's it, job done. Your workstations will shutdown at the scheduled time. I use this at many schools running on 2003 Server and XP clients. I haven't tested it on Vista yet.

  6. #80
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    550
    Thank Post
    89
    Thanked 81 Times in 65 Posts
    Rep Power
    55
    I've decided to use the "system shutdown v1.1.msi" and this works perfectly, it installs ok on the computer startup as supposed to, but after installation it shutsdown the computer! can anyone modify the msi to stop it doing this.=?

    Thanks

    Mike

  7. #81
    Sunderwood's Avatar
    Join Date
    Jan 2008
    Posts
    130
    Thank Post
    9
    Thanked 10 Times in 6 Posts
    Rep Power
    10
    Or you can do what we do and write a script that emails me and all of SMT everynight which machines and which rooms are left on and it soon stops!!

  8. #82
    eean's Avatar
    Join Date
    May 2006
    Location
    Kuala Lumpur
    Posts
    530
    Thank Post
    57
    Thanked 48 Times in 33 Posts
    Rep Power
    24
    Quote Originally Posted by linkazoid View Post
    I've decided to use the "system shutdown v1.1.msi" and this works perfectly, it installs ok on the computer startup as supposed to, but after installation it shutsdown the computer! can anyone modify the msi to stop it doing this.=?
    Shutsdown the computer? It doesn't do this on our system. (I made it, by the way) it might restart the computer (I don't think it does) but I don't even know how to make shutdown!
    Is there any chance it was a fluke, eg. caused by WSUS applying some updates?

  9. #83
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    550
    Thank Post
    89
    Thanked 81 Times in 65 Posts
    Rep Power
    55
    Thanks for the program! works a treat, cant understand why it shuts down tho, but the week is running out so i shall just email the staff giving them warning of the shutdown on first switching back on.

    Many Thanks

    Mike

SHARE:
+ Post New Thread
Page 6 of 6 FirstFirst ... 23456

Similar Threads

  1. UPS Won't Shut Up.
    By Greg_Jones in forum Hardware
    Replies: 12
    Last Post: 27th November 2007, 10:21 AM
  2. Replies: 6
    Last Post: 19th October 2007, 02:48 PM
  3. Shut Down Options
    By tomlin in forum How do you do....it?
    Replies: 9
    Last Post: 7th October 2007, 12:59 AM
  4. Script to shut down computers in a certain OU
    By tosca925 in forum Scripts
    Replies: 11
    Last Post: 25th September 2005, 09:23 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
  •