Configuration Manager shutdown utility

To suppress or not suppress a computer restart when deploying software and software updates that is the question. No matter what you do, you most likely will not win the “best colleague of the Month” award.

If you do not force a computer restart you might face problems like:

  • Non-compliant computers
  • Computers being in reboot pending mode which might prevent them from installing new software and software updates

If you do force a restart you might face problems like:

  • Very unhappy users
  • Scenarios where you restart while the end-user is using the computer for a demo or presentation
  • End-users calling Servicedesk and complaining about a virus that’s shutting down their computer
  • Restarting computers that are already compliant

Coretech Shutdowntool

To mitigate those problems we have developed a Shutdowntool that allows you to control the process of restarting computers in a user-friendly way.

Click here to download the tool.

The tool takes a few command-lines where you can specify:

Usage: ShutdownTool [/t] [/d] [/m] [/e] [/r | /l] [/f] [/c]

No args

Display help, same as typing /?

/?

Display help.

/t:xx 

Configures the countdown time to xx seconds (default 60).

/d:"xx"

Configures the description to xx.

/m:xx

/ Configures the maximum allowed minutes the end-user can postpone (default 10080).

/e:xx

Only run if last shutdown time was more than xx hours ago.

/r

Change action to Reboot instead of default Shutdown.

/l

Change action to Logoff instead of default Shutdown.

/f

Forces the chosen action.

/c

Disables the option to abort.

Example:

ShutdownTool /d:"Your computer is non-compliant and a restart will be initiated!" /t:1440 /m:1440 /e:1440 /c /f

The argument /e:1440 will prevent the program from running on computers that have restarted within the last 1440 hours.

/m: is used to configure the number of minutes an end-user can postpone the action. This is done by selecting a value corresponding to the number of minutes/hours from the drop-down list. The list of values will change according to the number of minutes left to postpone.

image

image

image

How to configure the tool in Configuration Manager

In order to use the tool you need to follow these simple steps in Configuration Manager:

  1. Copy the shutdowntool.exe to the local computer. You can do that using a script
  2. Create a Configuration Manager package without any source files.
  3. Create one or more programs in the package to control the Shutdowntool. You MUST configure the program to allow End-User to interact.
    image
    image
  4. Create an advertisement with recurrence according to you needs. In my environment I have an advertisement running every Monday morning.
    image

That’s it, after a few days you will start seing an increase in the number of compliant computers in your environment.

Credit goes to Claus Codam, who has been the main developer on this project.


Comments (40):

  1. [...] Read the full post and download the tool here. [...]

  2. [...] Read the full post and download the tool here. [...]

  3. doug blowers says:

    i uses a wise script and i am limited to the length of the command line. i wish we coult have a txt\ini file to edit the text in the message box.

    cool tool.

    • Kevin says:

      @doug blowers, In the WiseScript, use variables for the text. Then combine the variables to form longer sentence(s).

      Kevin

  4. doug blowers says:

    also the “company logo” JPG cuts into the first line of text and cut the words in half not matter what size your JPG is.

  5. Thomas Alterhaug says:

    We have a problem with the logoff function. When we use the /l switch the computer restarts instead of logoff. The shutdown utility states that logoff is the chosen option, but the computer restarts anyway. Anyone else have this problem?

  6. Erik says:

    Would it be possible to change te text so i can change it to dutch ?

  7. Kent Agerlund Kent Agerlund says:

    @Erik, you can customize the text in the commandline properties

  8. Dave says:

    Kent, we would like to use the logout option (rather than shutdown) as this feature would work very well with our “quick use” pc’s which restrict users to a 15minute session (quick email check etc). Unfortunately, I’m unable to get this to work – same issue as Thomas Alterhaug’s reply above (7th September 2011 at 08:38). Thanks for your help, Dave.

  9. Kent Agerlund Kent Agerlund says:

    @Dave, that has been fixed in the latest edition of the tool – http://blog.coretech.dk/kea/updated-version-of-the-shutdown-utility/

  10. Dave says:

    Works a treat Kent, thanks very much. Cheers, Dave.

  11. Erik says:

    It states shutdown in progress our users are dutch and some dont udner stand shutdown log off etc.
    we want to customize it to dutch

  12. John says:

    I wish I saw this prior to SCCM 2012 coming out :p

  13. afras says:

    Thank you very much, solved my reboot issues in are SCCM.

  14. afras says:

    Is there a way to put a logo or branding whilst its prompting the user for a reboot.

  15. Allen says:

    Kent,
    When I run the program with the default 1440 to extend the countdown the drop down box it shows a max of 12 hours. If I set it to 720 the max is 6 hours. Here is my command line “ShutdownTool.exe /t:600 /d:”reboot” /m:720” am I doing something wrong?

    Thanks
    Allen

    • Claus Codam Claus Codam says:

      Hello Allen,

      Can i ask you, what version of the tool you are using? (see File Version)
      I’ve just tested 0.8.1 and 0.9.2B(Newest), and both are doing fine with your command line, still showing 12 hours.
      Have you tried supplying 721 or 731 with the parameter? – does that give you 6 or 12 hours max?

      Thanks for using our tool (:

  16. horst says:

    hello,

    thanks for nice TOOL !!!! but i have some improvements…

    *ShutdownTool.exe /m:1440 /wps:”vlc” /l /t:10 <— /wps:"vlc" doesent work… he ignore that argument
    *logging function is missing
    *check pending reboot function is missing (only reboot if needed (Software Updates))

    can please build in new version `? THANKS!

  17. Darran says:

    Hi great tool….I deploy it to my computers twice daily…the only problem that I am experiencing is that it does not come to the front if the end users have other windows opened…this can cause problems especially if they do not see it in time as it is hidden behind the other windows such as web pages, word docs etcc…..

    Is there a parameter that can be appended to force it be the active window until there is some user intervention???

  18. Darran says:

    Hi claus

    Just wondering if you could give me a tip on this……i have tried endlessly to use the display parameter in my script but it will not allow me…..the problem is that i can not add another set of double quotes in the string……the script below is working but i would like to get the display functionality in it also…any ideas on the correct syntax???

    ‘ dim shell
    set shell=createobject(“wscript.shell”)
    shell.run “%systemroot%\system32\ShutDownTool.exe /t:300″
    set shell=nothing

  19. Vasia says:

    Thank you for the excellent tool. Now, I am the best friend of the business people. Almost…

  20. Matt says:

    Hi,
    It seems that if the shutdown tool is engaged and the option to abort is disabled, the user cannot normally and manually shutdown their PC from start button. ie: you must use the GUI in the Coretech Shutdown tool to restart the PC. If you try to manually shutdown the PC while the Coretech shutdown tool is running, it says a process is currently running and only a FORCED shutdown works. Is there a way around this?

  21. Birger Rotmo says:

    Hi, thank you for your excellent tool, it’s been a great help for us.
    We manage 6000 student computers where users don’t have administrative rights.
    We have implemented your tool into SCCM 2007 and it run fine.
    But: Our students will always try to avoid our efforts for manage their computers. We have tested and found that they are not able to kill the process in Task Manager. However, if you click “End Task” in “Applications” in Task Manager (and does it several times) the program crashes…. – and I’ll promise you: they will do! :-)
    Are there any way for us to prevent this? Our suggestion is as follows: Any kind of avoiding the program from running should lead to an immediately reboot?
    And yes, we are not running for “The best workmate this year” – yet….

  22. Adam says:

    I get prompted to log in when I go to download the file. Any ideas?

  23. Sukhwinder says:

    I get prompted to log in when I go to download the file. How to register and login?

  24. Emmanuel Dessilly says:

    Thanks for this tool !

  25. Sam says:

    Wanted to get this for a primary school but getting prompted to log in when I click the download link. What should I be doing?

  26. I think that everything said was actually very reasonable.
    However, what about this? what if you were to write a awesome headline?
    I mean, I don’t wish to tell you how to run your website,
    but suppose you added a post title to maybe grab people’s attention?
    I mean Coretech Blog

  27. Don says:

    Hi – I was interested in the shutdown utility download, but it says I need to log in. Is this available only to current customers, or may I create a login to be able to download this?

    thanks either way,
    Don

  28. Hans says:

    Hey will it be possible to change the the menus text???

  29. Rick Gates says:

    Is it possible to update the shutdown tool to be able to run from task sequence where you use task sequence to install applications and at the end force a reboot in 420 minutes out into the future?
    I currently have a hack in the task sequence to create a scheduled task on the machine:
    cmd /c Echo schtasks /create /tn Reboot /tr “shutdown /m \\%computername% /f /t 25200 /r” /sc once /st “%%MyTime%%” /f /RU SYSTEM /Z /V1 >> %windir%\Temp\Reboot.bat
    cmd /c start reboot.bat
    But was hoping for a easier solution.

  30. wendyhauschildt.com

    Coretech Blog » Blog Archive » Configuration Manager shutdown utility

Leave a Reply

(required)