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.

By | 2011-07-28T07:29:51+00:00 July 28th, 2011|Configuration Manager (SCCM), General info|91 Comments

About the Author:

Kent Agerlund
Microsoft Regional Director, Enterprise Mobility MVP. Microsoft Certified Trainer and Principal consultant. I have been working with Enterprise client management since 1992. Co-founder of System Center User Group Denmark in 2009. Certified MCITP: Enterprise Administrator, MCSA+Messaing, and much more. Member of: Microsoft Denmark System Center Partner Expert Team The Danish Technet Influencers program System Center Influencers Program.

91 Comments

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

    • Sukhwinder March 11, 2013 at 6:03 - Reply

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

    • asmaa October 20, 2014 at 17:49 - Reply

      can this work with SCCM 2012 R2 ?
      I can not down load the tool

    • Harry greenwood February 3, 2016 at 17:19 - Reply

      Can’t download tool wants login . how do I register / login ?
      ta

    • Sylvain February 9, 2017 at 9:31 - Reply

      Hi

      Is it possible to translate all text button in french and also hide the abort button or other ?
      Thanks for your help.

    • Eric March 22, 2017 at 15:00 - Reply

      Cannot download. Wants a login?

    • Kyle Ericson August 29, 2017 at 16:48 - Reply

      How do you handle when a user restarts outside this tool and the console reports this error code as failed.
      Error description:
      1073807364

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

  3. doug blowers August 3, 2011 at 15:14 - Reply

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

    cool tool.

    • Kevin January 19, 2012 at 21:22 - Reply

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

      Kevin

  4. doug blowers August 3, 2011 at 17:05 - Reply

    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 September 7, 2011 at 8:38 - Reply

    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 October 21, 2011 at 12:01 - Reply

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

  7. Kent Agerlund October 21, 2011 at 12:02 - Reply

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

  8. Dave November 1, 2011 at 16:14 - Reply

    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 November 1, 2011 at 16:16 - Reply

    @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 November 2, 2011 at 9:06 - Reply

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

  11. Erik November 3, 2011 at 15:14 - Reply

    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 April 26, 2012 at 20:33 - Reply

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

  13. afras May 2, 2012 at 12:51 - Reply

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

  14. afras May 4, 2012 at 16:29 - Reply

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

  15. Allen June 11, 2012 at 18:04 - Reply

    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 June 11, 2012 at 18:56 - Reply

      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 July 5, 2012 at 21:04 - Reply

    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 July 12, 2012 at 19:43 - Reply

    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 July 13, 2012 at 21:41 - Reply

    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%system32ShutDownTool.exe /t:300”
    set shell=nothing

  19. Vasia October 2, 2012 at 2:34 - Reply

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

  20. Matt October 29, 2012 at 15:44 - Reply

    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?

    • Claus Codam October 29, 2012 at 15:58 - Reply

      Hi Matt,

      This is a known bug, and is fixed in the next release.

      It seems the email you’ve provided isn’t correct, therefore to receive a hotfix for the current version, please send me a mail ( cco@coretech.dk )

      Thank you for using our tool, and giving us feedback.

      • Scott Williams December 3, 2012 at 16:56 - Reply

        When is the new version due?

  21. Birger Rotmo February 1, 2013 at 12:00 - Reply

    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 February 28, 2013 at 17:27 - Reply

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

  23. Sukhwinder March 11, 2013 at 6:28 - Reply

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

  24. Emmanuel Dessilly April 10, 2013 at 10:34 - Reply

    Thanks for this tool !

  25. […] […]

  26. Sam May 21, 2013 at 12:59 - Reply

    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?

  27. promozioni hotel Rimini October 1, 2013 at 18:23 - Reply

    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

  28. Don February 6, 2014 at 23:47 - Reply

    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

  29. Kent Agerlund February 7, 2014 at 0:18 - Reply
  30. Hans February 7, 2014 at 13:47 - Reply

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

  31. Rick Gates May 19, 2014 at 23:29 - Reply

    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%TempReboot.bat
    cmd /c start reboot.bat
    But was hoping for a easier solution.

  32. wendyhauschildt.com September 12, 2014 at 13:00 - Reply

    wendyhauschildt.com

    Coretech Blog » Blog Archive » Configuration Manager shutdown utility

  33. Ivo September 30, 2014 at 13:36 - Reply

    Thanks!

  34. Mark October 1, 2014 at 14:41 - Reply

    I’m having some issues getting the tool to recognize the following registry key:

    HKLMS OFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired

    I followed the example in the Arguments.txt (/er:”HKLMSOFTWARECTName”==”Coretech”) but when I try the above registry key nothing happens.

    Can you give me a tip on how to get this to work?

    • Claus Codam October 1, 2014 at 15:23 - Reply

      Hi Mark,

      With the /ER command, you can set an exception rule, to determine if the tool should start, based on whether a Key Value exists or not exists, or if it has a specific value.

      Only start if Key Value RebootRequired exists:
      ShutdownTool.exe /ER:"HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired"==

      Only start if Key Value RebootRequired does not exists:
      ShutdownTool.exe /ER:"HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired"!=

      Only start if Key Value RebootRequired has the Value of Mark
      ShutdownTool.exe /ER:"HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired"=="Mark"

  35. Mark October 1, 2014 at 22:17 - Reply

    Claus, thanks for the reply but, maybe I’m missing something. I’ve cut, paste and typed the commands and the only command that works is Only start if Key Value RebootRequired does not exists:

    ShutdownTool.exe /ER:”HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired”!=

    I’ve verified the RebootRequired key exists. When executing the tool with == Only if Key Value RebootRequired exists, the tool does not recognize the key exist.

  36. apsmith.co.uk October 11, 2014 at 12:11 - Reply

    apsmith.co.uk

    Coretech Blog » Blog Archive » Configuration Manager shutdown utility

  37. Ardys October 15, 2014 at 15:24 - Reply

    Ardys

    Coretech Blog » Blog Archive » Configuration Manager shutdown utility

  38. Barkley December 12, 2014 at 7:02 - Reply

    Do you also have a tool similar to MiniNotify (myitforum.com/cs2/files/folders/utilities/entry114775.aspx) that notifies the user of an impending deployment and provides a countdown?

  39. Jayson Nolasco January 15, 2015 at 16:56 - Reply

    [How To Use ShutdownTool with a Task Sequence]
    Create 2 Packages

    1st Package ShutdownTool – xcopy
    Program: xcopy
    Command line: xcopy “\yourserverShutdownTool*.*” “C:WindowsTemp” /e /i /y

    On the Environment tab…
    Select “Whether or not a user is logged on”

    2nd Package ShutdownTool – Run
    Program: Restart
    Command line: ShutdownTool.exe /t:60 /m:60 /c /r /f
    Start in: C:WindowsTemp

    On the Environment tab…
    Select “Whether or not a user is logged on”
    Check “Allow users to interact with this program”

    On the Advanced tab…
    Check “Run another program first”
    Browse for the Package “ShutdownTool – xcopy”
    Select the Program “xcopy”
    Check “Always run this program first”

    Right click on your Task Sequence then select Properties.
    On the Advanced tab…
    Check “Run another program first”
    Browse for the Package “ShutdownTool – Run”
    Select the Program: Restart
    Check “Always run this program first”

    Right click your Task Sequence then select Edit.
    *NOTE* Make this the very first step of your Task Sequence.
    Add > General > Restart Computer
    Select “The currently installed default operating system”
    Uncheck “Notify the user before restarting”

    DONE!

  40. Paul Austin January 27, 2015 at 22:34 - Reply

    Hi, you say copy the .exe file locally then execute with a program, am I not able to create a package with the code in and execute as if it were a normal software package?

  41. David February 6, 2015 at 9:19 - Reply

    Hi Ken

    Is there a possibillity that you could make a guide for the SCCM 2012 R2?

  42. Rob Baker February 9, 2015 at 17:02 - Reply

    Hi guys, is this tool still being developed/supported?

  43. Greg February 10, 2015 at 20:27 - Reply

    Is there a way to disable the reminder window that appears when you select minimize or postpone? This is an issue for our users who are giving presentations in full screen PowerPoint and can’t hide or suppress the reminder window.

    Great tool!!!

    Thanks!
    Greg

  44. Aleksandr March 5, 2015 at 15:45 - Reply

    Is it possible to aquire a LARGER window version utility. I need to write bilingual texts in it an just can`t fit it in current size.
    Brilliant utility!

  45. Nick L March 16, 2015 at 9:01 - Reply

    Any way when choosing postpone, to get rid of the small overlay reminder? My boss loves everything about it except the fact it forces overlay.

    Thanks

  46. Scheduled Shut Down April 13, 2015 at 11:06 - Reply

    […] This is the one you want, ignore the branding, you can run the tool remotely or locally. http://blog.coretech.dk/kea/configur…tdown-utility/ […]

  47. Eli May 21, 2015 at 14:54 - Reply

    Kent,

    I am looking at implementing this tool at my school district. The only issue that I can see is this program rebooting the computer while a student is taking a state assessment test. The testing software prevents all other programs from displaying on the screen, so they would not even get a warning. Is there a way to have this only run if x application is not?

    Thank you for you help.

  48. SBF July 1, 2015 at 16:37 - Reply

    Hi Kent,
    Seems this excellent tool isn’t supported anymore? Why not converting this to Non Commercial, Open Source? Or give someone else the opportunity to maintain this tool?
    There are a lot of feature requests here in this thread.
    Regards,
    SBF

  49. Craig August 18, 2015 at 2:46 - Reply

    Hi There,

    How does the tool determine when the last restart was? I have some users who swear blind they restart their PCs every night yet they still get this tool appearing. I have my options to only reboot if the PC has not been rebooted for 14 days.

    Cheers
    Craig

  50. KANAGARAJ November 10, 2015 at 18:17 - Reply

    Hi,

    Could you please confirm whether the tool can be used for free in corporate environment

  51. Kent November 11, 2015 at 13:10 - Reply

    It’s free and can be used

  52. Beau January 17, 2016 at 15:39 - Reply

    Have you ever tried emma marketing ? What do you think about them

  53. Kel January 18, 2016 at 17:40 - Reply

    Are there any updates to this tool? Haven’t seen a new version in a couple of years and we’ve had people reporting .Net Framework errors when trying to postpone

  54. Al January 26, 2016 at 16:40 - Reply

    hi Claus,

    I’m having issue downloading the tool, error message “You must be logged in to download this file”
    how can I become a logged/register/download?

    thank you
    Al

  55. Dave February 3, 2016 at 22:29 - Reply

    I posted this in the other forum, but wanted to ask here as there seems to be more activity

    I can’t seem to get the /ps: switch to work. I have even copied directly out of this blog and it still doesn’t work. If I could get this working, it would be great. Is there anyway to remove the countdown to force the reboot? I just want to use this as a nag, not to ever have it countdown and force the reboot. (I know forcing is good and I want it, but that doesn’t fly at my place)

  56. Craig February 11, 2016 at 0:37 - Reply

    Hi Again,

    I’ve asked this already without reply but I’ll try again.

    How does the tool determine when the last restart was? I have my options to only reboot if the PC has not been rebooted for 14 days (ShutdownTool.exe /t:5400 /m:1440 /esM:336 /r /c) yet I have seen with my own eyes the tool appearing on a PC that was only just started up after a reboot.

    Cheers
    Craig

  57. […] In the end I believe we have found the option with the least compromises to our end users’ experience. Each situation is different, but between these options you should be able to find one that fits your users’ experience as well. Sources: http://blog.techtalklive.org/ttlblog/Pages/Reboot-Behavior-for-SCCM-Client-Computer-Updates.aspx http://blog.coretech.dk/kea/configuration-manager-shutdown-utility/ […]

  58. […] to my daily job. This is one of those areas. Kent spoke of a tool that Coretech developed called Shutdown Tool (download link here). This tool creates a pop up that forces a reboot of the computer after a given […]

  59. Jesse Lovicott April 25, 2016 at 16:57 - Reply

    I am looking partially image a PC and then set it on the shelf and resume the imaging process later when deploying it.
    For Example:
    Restart Win PE
    Partition 0
    Apply the OS
    Apply the drivers
    Shutdown
    -Resume-
    PC Name
    Apply Win Settings
    Apply Net Settings
    Install other stuff.

    Would this shutdown tool facilitate that?

    Thanks.
    JL

  60. Vru_c May 17, 2016 at 20:55 - Reply

    Hi Guys,

    Is this tool available in French and other languages as we need to use this to deploy to French machines.

    Thanks.

  61. James Cramer June 17, 2016 at 3:50 - Reply

    Was anyone able to get the only start if Key Value RebootRequired exists:

    ShutdownTool.exe /ER:”HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired”==

    to function correctly?
    When I try it, Shutdowntool does not run even though I have confirmed that the following key does exist:

    HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired

  62. Jack July 9, 2016 at 22:06 - Reply

    We seems to be having a problem with this tool running but not visible to logged on users, has anyone had this problem? On some systems it works perfectly, on others it runs exactly as scheduled, but they cant see the notification pop-up, so it reboots without them having any notification. Usually this is for users that were not logged in at the time the tool ran.

    Jack

  63. Charles October 6, 2016 at 17:39 - Reply

    First off love this tool!!!
    I do have one issue, I am deploying it out as a package in SCCM 2012 R2 1602. The package has the following configs: ShutdownTool_NoBack.exe /t:7200 /m:0 /r /f /c /i /esM:167
    So the Shutdown Tool will Force Reboot the client machine with 02 hour count down and ONLY run if last shutdown time was > 167 hrs or 7 days.
    It work flawlessly for Win7 but not Win81. It has been deployed out to some test devices (laptops and desktops) the laptops(Win81) are shutdown at the end of everyday but the OS does not see or consider the shutdown as a reboot until restart is selected. Any help/suggestions would be appreciated…

    • Ryan Engstrom March 20, 2017 at 21:03 - Reply

      This sounds a lot like hybrid shutdown. We had this issue with patches not being applied when we knew users were selecting shutdown from the start menu. It went into a hybrid shutdown, not a full shutdown and patches were not applied. We turned off the hybrid shutdown via GPO, but you can also test this by clearing the ‘Turn on fast startup (recommended)’ checkbox. This was Windows 10 in our environment, but I’m guessing Windows 8.1 is similar.

  64. Carlos October 19, 2016 at 15:05 - Reply

    Hello,
    Can you add the tool with the language Portuguese pt-PT?
    I can help with the translation
    For example:
    Shutdown in Progress – Encerramento em Progresso
    Abort – Cancelar
    Minimize – Minimizar
    Postpone – Adiar
    Shutdown – Encerrar

    Thanks

  65. Shannon November 3, 2016 at 12:56 - Reply

    I’ve used your guy’s website and tools quite a bit with SCCM. It’s a great source of information, when needed. However, now I’m being asked if there is a license agreement for this software. I know it’s freeware, but my boss is after if it’s ok to use in an Enterprise environment. Do you have a license agreement I can download and prove it is ok to use this tool and where can I get said agreement? Thanks.

  66. Allan January 10, 2017 at 15:11 - Reply

    Since I can’t get the /er:”p” switch to work, I just wrapped a vbs around it.

    Option Explicit
    Dim objShell, objSysInfo
    Dim strShutdown

    strShutdown = “ShutdownTool.exe /r”

    Set objSysInfo = CreateObject(“Microsoft.Update.SystemInfo”)

    If objSysInfo.RebootRequired = “True” Then
    set objShell = CreateObject(“WScript.Shell”)
    objShell.Run strShutdown, 0, false
    End if

    Wscript.Quit

  67. Arska January 12, 2017 at 15:58 - Reply

    Proposal, switch Minimize and Restart/Shutdown button vice versa.
    Users accidently click Restart/Shutdown button, but they wanted Minimize. 

  68. Johnny April 11, 2017 at 14:08 - Reply

    Thanks!

  69. TWP April 21, 2017 at 9:33 - Reply

    How can I run this tool as System so that it still shows up for the user? Want to run it via Scheduled task in system context but when I do that the popups does not show up for the logged on users.

  70. […] to my daily job. This is one of those areas. Kent spoke of a tool that Coretech developed called Shutdown Tool (download link here). This tool creates a pop up that forces a reboot of the computer after a given […]

  71. […] to my daily job. This is one of those areas. Kent spoke of a tool that Coretech developed called Shutdown Tool (download link here). This tool creates a pop up that forces a reboot of the computer after a given […]

Leave A Comment