+ Post New Thread
Results 1 to 9 of 9
Windows 7 Thread, PsShutdown & Windows 7 in Technical; Hi We are trying to make a shutdown policy for our School with about 650 clients. We want to have ...
  1. #1

    Join Date
    Nov 2009
    Location
    Swadlincote
    Posts
    20
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    PsShutdown & Windows 7

    Hi

    We are trying to make a shutdown policy for our School with about 650 clients. We want to have a message to warn users if they are logged on at the time with an option to cancel the shutdown. We used to use Poweroff in XP but the message display will not work in 7 and the machine shuts down without any warning to a logged on user.

    We've tried a couple of sceduled scripts (not Pstools) which work when user is logged on but we can't get them to work in Windows 7 machines when no user is logged on.

    It looks as though PsShutdown may solve this for us from the reading the blurb. Can anyone confirm whether this will work to 1) warn a user for x minutes with a cancel option and 2) shutdown the machine (Windows 7) when no user is logged on.

    Thanks

  2. #2
    jaminben's Avatar
    Join Date
    Oct 2012
    Location
    Norfolk
    Posts
    233
    Thank Post
    46
    Thanked 15 Times in 14 Posts
    Rep Power
    6
    Hi, as far as I'm aware PsShutdown will no longer work with W7 correctly... IIRC you can still shutdown clients but you cannot show a message or allow the user to cancel/postpone.

    If anyone else knows differently then please reply as I'd like to use this tool as well.

    Thanks

  3. #3
    gshaw's Avatar
    Join Date
    Sep 2007
    Location
    Essex
    Posts
    2,650
    Thank Post
    164
    Thanked 217 Times in 200 Posts
    Rep Power
    66
    What we really need is a new developer for the shutdownertron project, that was an awesome bit of software for XP but seems like development for W7 has died

  4. #4

    Join Date
    Apr 2010
    Posts
    2,036
    Thank Post
    83
    Thanked 187 Times in 154 Posts
    Rep Power
    83
    Just looking at different shut down options and wondered what you ended up using.

  5. #5

    Join Date
    May 2008
    Posts
    48
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    13
    I also would like to hear more about a resolution to this as well. I would love to have a script that runs on every machine here in our district that says "If I haven't been shut down in X days, I'll go ahead and restart tonight @ 5PM" But also inform the user in case they are logged on so as not to mess up our users while they are using the system.

  6. #6
    kennysarmy's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,286
    Thank Post
    80
    Thanked 45 Times in 31 Posts
    Rep Power
    30
    I gave up trying to find any useful way to acheive what you want - I just set the power saving mode so the PC's go to sleep if not being used....

  7. #7

    Join Date
    Apr 2010
    Posts
    2,036
    Thank Post
    83
    Thanked 187 Times in 154 Posts
    Rep Power
    83
    I ended up using GPP and scheduling a time they shutdown. I have also set it to wait until the computer has been idle for 10 mins which should mean only computers not being used will run the schedule. Seems to be working ok.

  8. #8

    Join Date
    Apr 2011
    Location
    London
    Posts
    39
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Set WSHShell = WScript.CreateObject("WScript.Shell")
    Set oFS = CreateObject("Scripting.FileSystemObject")

    strWarning = "Due to network maintenance, this computer must be restarted. You have 5 minutes to save your work from the start of this countdown. Sorry for any inconvenience caused. "
    strDelay = 300 'Delay given in seconds; change this value to your preference, or set it to 0 to give no delay at all

    'Open a text file of computer names
    'with one computer name per line
    Set oTS = oFS.OpenTextFile("C:\computers.txt")

    'go through the text file
    Do Until oTS.AtEndOfStream
    'get the next computer name
    'store it in variable strCompname
    strCompname = oTS.ReadLine
    WshShell.Run "C:\Windows\System32\shutdown.exe -m \\" & strCompname & " -r -c " & Chr(34) & strWarning & Chr(34) & " -t " & strDelay 'Replace the "-r" switch with "-s" to make the computers shutdown instead
    Loop
    'close the text file
    oTS.Close

    This is a script that I use (taken from the spiceworks forum) which gives you the warnings before shutting down the PC. I Schedul the script to run at a 7pm via GP. Hope this helps

  9. #9

    Join Date
    Apr 2011
    Location
    London
    Posts
    39
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    sorry forgot to say, you need to have a text file with all your computer names. You can do this by exporting them from your AD.

SHARE:
+ Post New Thread

Similar Threads

  1. [Windows Software] Windows Server Virtual Licences
    By Stuart_C in forum Licensing Questions
    Replies: 5
    Last Post: 26th March 2010, 05:28 PM
  2. [Windows Software] Unlimited Windows Virtualization right
    By albertwt in forum Licensing Questions
    Replies: 9
    Last Post: 15th February 2010, 07:22 PM
  3. [Windows Software] Deploying Windows 7 COmpanywide (50 PC)
    By albertwt in forum Licensing Questions
    Replies: 8
    Last Post: 10th February 2010, 12:26 AM
  4. [Windows Software] Windows 2008 Server Student Access Licence
    By adamf in forum Licensing Questions
    Replies: 4
    Last Post: 4th February 2010, 04:51 PM
  5. [Windows Software] Windows 7 Student Offer
    By dannyjay in forum Licensing Questions
    Replies: 10
    Last Post: 30th October 2009, 11:31 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
  •