+ Post New Thread
Page 4 of 9 FirstFirst 12345678 ... LastLast
Results 46 to 60 of 123
Windows Thread, Software to shut down PC's? in Technical; Netman's suggestion(s) will work fine then. Just ensure the machines don't get turned off at the breaker switch/power socket....
  1. #46

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,840
    Thank Post
    110
    Thanked 592 Times in 513 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: Software to shut down PC's?

    Netman's suggestion(s) will work fine then. Just ensure the machines don't get turned off at the breaker switch/power socket.

  2. #47

    Join Date
    May 2006
    Posts
    1,319
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    26

    Re: Software to shut down PC's?

    Quote Originally Posted by eean
    Quote Originally Posted by _Bat_
    I found a couple of machines were in standby mode, therefore they would not shut down when asked.
    I had the same problem. See my post above and attached there is a MSI file. It installs a windows task to run psshutdown. The windows task wakes the computer up to run. It's currently set to 6pm (so long as the computer hasn't been used for the past 15 minutes). To change it you'll need to install it, change the time on the task in task scheduler then update the file in the msi, using any msi editor.
    Thanks eean. I will actually have a look at this as it seems like a very good method. The only reason I didn't before is that I know nothing about MSIs... I have only been working in IT since march after coming out of college and i'm still learning . My network manager literally told me they are used for deploying software over the network, but I have no idea how or how to edit them. Are there any tutorials anyone knows of that I can follow?

  3. #48

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,840
    Thank Post
    110
    Thanked 592 Times in 513 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: Software to shut down PC's?

    MAKEMSI has an expansive help file on the subject.

    http://users.cyberone.com.au/dbareis/makemsi.htm

  4. #49

    Join Date
    May 2006
    Posts
    1,319
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    26

    Re: Software to shut down PC's?

    Okay, tried eean's way but failed miserably. I just can't understand MSI's very well .

    Okay, so back to stage one. I am determined to do this one way or another.

    It's just this stupid standby issue... the script I made works 100% perfectly (I was impressed with how flexible and smooth it was) APART from when the computer is in standby. Why can't microsoft make a setting that does what it says, no more, no less? No matter what I do the computers still manage to end up in standby

    I cannot get wake on lan to work, no matter what I do. I don't even need these 'magic packets' because I don't really want the computers going into standby at all, so I don't care if they wake up randomly. I keep reading on the net that I might have to make a hardware adjustment to the NICs...

  5. #50
    eean's Avatar
    Join Date
    May 2006
    Location
    Seoul
    Posts
    571
    Thank Post
    70
    Thanked 56 Times in 40 Posts
    Rep Power
    31

    Re: Software to shut down PC's?

    If you like, I'll see if I can make you a new msi, just tell me:
    What time do you want the computer to switch off?
    What message would you like it to display?
    How long would you like the message for display for?
    Do you want a cancel option?
    How long would you like the computer to have been idle for before initiating the shutdown message? (mine waits 15 minutes before popping the message up)

  6. #51

    Join Date
    May 2006
    Posts
    1,319
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    26

    Re: Software to shut down PC's?

    Quote Originally Posted by eean
    If you like, I'll see if I can make you a new msi, just tell me:
    What time do you want the computer to switch off?
    What message would you like it to display?
    How long would you like the message for display for?
    Do you want a cancel option?
    How long would you like the computer to have been idle for before initiating the shutdown message? (mine waits 15 minutes before popping the message up)
    Hi eean, sorry about the (very) late response, been busy with other jobs and have only just got back around to focusing on this.

    Thanks for the offer, but thinking about it, your current MSI settings are perfect. I have since figured out how to deploy MSIs over the network as well.

    I had have one remaining question... will this task work on both win2k and win xp? We have both in our network. I seem to remember that the schtasks is a winxp only thing. Will this cause trouble with the MSI?

    Thanks a lot for your help.

  7. #52
    eean's Avatar
    Join Date
    May 2006
    Location
    Seoul
    Posts
    571
    Thank Post
    70
    Thanked 56 Times in 40 Posts
    Rep Power
    31

    Re: Software to shut down PC's?

    Yes, unfortunately Schtasks IS only available on xp. The installer uses schtasks to set the permissions on the task to nt authority/system. You can't even install schtasks on the 2000 system first because it will come up with an error message. If you really want it, there are some instructions here about how to edit the exe to make it run on 2k.
    You could possibly save the credentials of a network admin in the task - you'd need to test it. Also, I reckon that the msi will install the task and the file to c:\windows and won't handle c:\winnt.
    Basically, all a bit of a pain! Sorry.

  8. #53
    chrbb's Avatar
    Join Date
    Oct 2005
    Location
    Midlands
    Posts
    1,508
    Thank Post
    141
    Thanked 67 Times in 62 Posts
    Rep Power
    47

    Re: Software to shut down PC's?

    Apologies for starting this topic again, do these scripts work if the workstation is logged off, I can't seem to get anything to work and shutdown the computers when they are logged off.

  9. #54
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    795
    Thank Post
    20
    Thanked 70 Times in 42 Posts
    Rep Power
    34

    Re: Software to shut down PC's?

    Quote Originally Posted by chrbb
    Apologies for starting this topic again, do these scripts work if the workstation is logged off, I can't seem to get anything to work and shutdown the computers when they are logged off.
    I can't speak for the other methods, but I use the builtin shutdown command to remotely shut down computer suites. It doesn't have any problem with computers being logged off at the time.

  10. #55

    Join Date
    May 2006
    Posts
    1,319
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    26

    Re: Software to shut down PC's?

    I had no problem getting the workstations to shutdown using psshutdown or beyondexec (I think thats what it was called) when they were logged off. The only trouble I had (and am still having) is when they are in standby. The issue I had is that most of the network is windows 2000 and therefore half the tools won't work as they were designed for XP.

  11. #56

    Join Date
    Feb 2007
    Location
    kendal
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Software to shut down PC's?

    We had the following script wrote for shuting down our machines, feel free to alter it to your own computers, it work fine with XP machines
    Attached Files Attached Files

  12. #57
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    20

    Re: Software to shut down PC's?

    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

  13. #58

    Join Date
    May 2006
    Posts
    1,319
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    26

    Re: Software to shut down PC's?

    Quote Originally Posted by fooby
    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
    Yeah, this won't work for win 2000 as it doesn't come with schtasks.exe. I was -very- tempted at one point just to rip off a hacked version of schtasks.exe from an XP machine and stick it on the 2000 machines via a startup script. The only reason I didn't was because I believe it is most likely illegal to do so.

  14. #59
    Midget's Avatar
    Join Date
    Oct 2006
    Location
    In a Server Room cutting through a forest of Cat5e
    Posts
    1,298
    Thank Post
    5
    Thanked 59 Times in 49 Posts
    Rep Power
    40

    Re: Software to shut down PC's?

    why would it be illegal?

  15. #60

    Join Date
    May 2006
    Posts
    1,319
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    26

    Re: Software to shut down PC's?

    Quote Originally Posted by Midget
    why would it be illegal?
    I don't know - I just assumed it would be. Its not a file that comes with windows 2000 so wouldn't it be against the license agreement to copy the file from windows XP to all the 2000 machines? I know its only a minor thing, but where do you draw the line?



SHARE:
+ Post New Thread
Page 4 of 9 FirstFirst 12345678 ... LastLast

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, 03:48 PM
  3. Shut Down Options
    By tomlin in forum How do you do....it?
    Replies: 9
    Last Post: 7th October 2007, 01:59 AM
  4. Script to shut down computers in a certain OU
    By tosca925 in forum Scripts
    Replies: 11
    Last Post: 25th September 2005, 10: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
  •