New version of the Coretech Shutdown tool

The Coretech shutdown tool is available in a new version. The new version allows you to close one or more running process(es) prior to installing another program. The updated version is perfect for those scenarios where an application (like JAVA) requires that one or more programs are closed before starting the installation. To read more about the Shutdown tool please look at these blog posts http://blog.coretech.dk/kea/configuration-manager-shutdown-utility/ and http://blog.coretech.dk/kea/updated-version-of-the-coretech-shutdown-utility-v-0-8/

What is the shoutdown tool

From the beginning the utility was designed to restart or shutdown computers that have been running without a restart for more than a specified number or hours/days. We developed the tool to ensure that workstations at some point were restarted after installing software updates. Since the first release we have added:

  • Support for log off instead of shutting down
  • Replace the logo with a custom logo
  • Add a RTF document with text to be shown in the dialog
  • Add support for multiple languages

In this release we have added a few more commandlines that allows you to ask users to close one or more running processes.

How it works

  1. The user will be warned about installing a new application that requires a few running process to be closed.
  2. At this point the user can save any work and close the processes.
  3. Once the countdown reaches 0 the shutdown tool will be minimized and a new 20 second countdown begins. After that countdown, the processes will be closed and the installation begins.

Examples

Closing a single process

shutdowntool.exe /ps:”Iexplore.exe”*”Internet Explorer” /d:”We are about to install a new version of Java. Please shut down Internet Explorer to start the installation” /c

image

If the user clicks Minimize the countdown continues in the notification area.

image

Closing multiple processes

shutdowntool.exe /ps:”winword.exe”*”Microsoft Word”:”iexplorer.exe”*”Internet Explorer” /d:”We are installing a new CRM version, please shut down Internet Explorer and Microsoft Outlook” /c

image

The lead developer for this tool is Claus Codam.


Comments (85):

  1. […] Read the full announcement:  New version of the Coretech Shutdown tool […]

  2. Glenn says:

    Hi.
    I’ll try to run the tool in a Task Sequence, but the tool never shows up on the client screen. I’ll see the .exe fil in the task manager, så the tool is running.
    How to show the tool to the running user?

  3. Chris says:

    Hi Claus.

    I was happy to see the new version has the logic to start the action immediately if there is no user present. Unfortunately i can’t get it to work. I use the following command line: ShutdownTool.exe /t:82800 /m:30 /r /c /ebM:720. In case there is no user present the /t is not overruled, the machine does not reboot.

    Best regards
    Chris

    • Chris says:

      Follow up: In another post i saw you use WMI for detection of the interactive user, perhaps Win32_LogonSession.LogonType=2? As far as i can see there remain some sessions with LogonType=2 when users log off. Another script i have checks for Win32_ComputerSystem.UserName which is more reliable in our environment.

    • Keny says:

      I have a diferent problem. I use the version 0.9.0.1 and I schedule the folow command:

      C:\Windows\ShutdownTool_NoBack.exe /t:7200 /m:0 /f

      But in some machines, the program show only 5 seg and then shutdown. In others machines, I don’t have problem…

      I will test this version

      • Vasia says:

        This appears to be the problem when the tool is NOT running under privileged user.

      • Vasia says:

        Hi Keny,
        Check that WMI on the machines is healthy. Versions before ShutdownTool-0.9.2BETA4 use WMI to detect the user login/logoff and, if not accessible, the default timeout is 5 seconds.

        Vasia

      • Jeppe says:

        I have this same problem, program shows only 5 seconds and then shuts down. In our environment this seems to affect all XP-machines. Windows 7-machines works as expected.

        /Jeppe

        • Jeppe says:

          Oh, and forgot to mention that we are definitely running this under privileged account and WMI on the machines seems to be healthy, so I thinks this is Windows XP-issue.

          /Jeppe

  4. Paul says:

    Hi,

    I too was hoping to use this in a task sequence (we use the task sequence method for deploying software updates as it’s more flexible when deploying multiple updates). However, even though I’m using serviceUI.exe, the program isn’t shown to the user. Any idea if this has that capability?

    Thanks,
    Paul

  5. […] There are applications about which enable us to shut down machines at a predefined time, even providing snooze buttons. e.g Take a look at Coretech’s Shutdown tool, this can close processes as well as shut the PC down; Coretech Shutdown Tool […]

  6. Teemu says:

    Hi,

    I tested to change language to finnish but it doesn’t seem to work.. or am i missing something? I used /g:fi-FI. /g:da-DK seems to work ok.

    /Teemu

  7. Lo says:

    Hi Claus,
    Could it be possible to specify the background color also? We would like the window to be in a predefined color when the browser needs to be restarted and another color when it is the computer that needs to be rebooted.
    Thanks!

    Lo

  8. visitor says:

    How do we use this tool in SCCM2012, deploying Applications?
    Do we run it in a batch file before the actual msiexec install command?
    Can anyone give us more clear instructions? (Can we run it from UNC path in batch file etc)
    The tool itself is great but I am trying to figure it out how I can use it sufficiently deploying applications in SCCM2012..
    The old instruction is for older sccm version.
    Thanks.

    • visitor says:

      I got it working perfect with sccm2012.
      Excellent tool!

    • Mike says:

      Also having issues getting this to run properlly on SCCM 2012, able to deploy once but instructions are out of date. the whole IT department is new to ConfigManager, any help would be appreciated.

  9. Tony says:

    I really can’t get this to work..

    If I open CMD as admin and copies
    shutdowntool.exe /ps:”Iexplore.exe”*”Internet Explorer” /d:”We are about to install a new version of Java. Please shut down Internet Explorer to start the installation” /c

    then I get the list of arguments so there is something wrong here.. Does this work for you?

  10. Tony says:

    There was an hidden letter when I copied from the site.. Now it works fine.

  11. MArk says:

    Hi, This is a great little tool that will save us a lot of hassle when it comes to deploying application upgrades to our estate. However, I was wondering if it would be possible to get the tool created to replace the “Shutdown” button with a “Close Application” button? We are just worried that some people in our environment would confuse “Shutdown” with shutting down the machine. Is this written in VB? Would it be possible to get access to the sourcecode?
    Thanks

  12. Sean says:

    Tony,

    What hidden letter are you refering too? We are running into the same issue as you had.

    Please advise on this command.

    shutdowntool.exe /ps:”Iexplore.exe”*”Internet Explorer” /d:”We are about to install a new version of Java. Please shut down Internet Explorer to start the installation” /c

  13. Lee Sands says:

    I am having trouble using this reliably in SCCM 2012 SP1.

    I can get it to run once on my test machine, I cannot get it to run multiple times. My aim is to shutdown machines everyday at a certain time.

    I have created a package with no source, added the command line and deployed it via an Assignment schedule.

    This works great for the FIRST time. The reoccurrence always fails….any pointers?

    Thanks

    Lee

  14. Sunil Nagmal says:

    HI Team,

    This tools awesome and works perfect using this from SCCM. the added advantage would be while the tools is running user should not be able to logoff the system, if user log’s off tools gets closed and hence it don’t run. In my organization i am using this as dailyshutdown at 9 pm if someone is working he postpone the process butas it is minimized user dont care and logsoff while leave which leaves the computer running please help

    And also is there any option to run this tool from task scheduler whether user is logged on or not. Thanx in advance.

  15. Sunil Nagmal says:

    I am having trouble in rerunning.

    Deployed this tool using sccm 2012 on all system.

    And created a package in sccm 2012 with no program just the commandline it works flawlessly.
    But problem is that when the computer is already shutdown and the schedule is missed it runs when the computers startsupagain.

    I Know this question is not related to this but related to sccm. But can somebody help me. Awaiting reply. Thanks in advance.

  16. Rory Rut says:

    Could this utility or do you have another utility that could be used for reboot notification? Where you have a timer and are able to postpone and then make it try again. And be able to set either the number of tries or the number of days before it will install without being able to postpone. Or do you other guidance on how to handle reboots?

  17. Carsten says:

    Hello and thanks for that tool. We are using it to deploy Java, Flash and Reader Updates with great success.
    It would be great if you could add german language.

    Regards

  18. Paul says:

    Hi
    Tony,

    What hidden letter are you refering too? We are running into the same issue as you had.

    Please advise on this command.

    shutdowntool.exe /ps:”Iexplore.exe”*”Internet Explorer” /d:”We are about to install a new version of Java. Please shut down Internet Explorer to start the installation” /c

  19. Seán Lillis says:

    Hi Kent,

    I hope you don’t mind me shamelessly plugging the PowerShell Application Deployment Toolkit here. Anyone who is interested in the functionality provided by the Shutdown Tool might also be interested in checking this out: http://psappdeploytoolkit.codeplex.com.

    As far as I can tell, it provides all of the functionality and UI customization of the Shutdown Tool and more, including the ability to prevent users from launching the closed applications while an installation is in progress, countdown to automatically closing applications and the ability to defer an installation X number of times, X number of days or until a deadline.

    Thanks,
    Seán

  20. Andrue says:

    The /ps: (Process Shutdown) portion of this application does NOT work. If you do /? you can see that /ps is not among the supported Switches. It has nothing to do with a hidden character when copied from the website, because I have typed it out manually, and attempted numerous variations. No success… Kent, please advise.

    Thank you

  21. Maarten says:

    Hi,

    I am trying to use the beta6 in our software deployments for Dell bios updates.

    What I have noticed now is that when the Shutdown tool does the shutdown of the machine (either by selecting the button to shutdown ahead of the timer, or simply have the timer run out) the bios update is not performed at the next start up of the machine.

    If I comment out the shutdown tool and do a manual restart after running the script (script only does some powercable checks to abort if running on battery but otherwise just applies the bios with -nopause -noreboot -forceit parameters) the the bios update runs fine.

    Is there anything different in the way your shutdown tool does a shut down of a machine?
    Seems this is not a issue with any other software deployment, but it looks like it interferes with the way Dell pre-stages it’s bios updates in Windows.

    Hope that is enough info for you to figure out what happens here?

    thanks!
    Maarten

  22. Mike says:

    We are trying to manage multiple lab environments in a K-12 district and this tool seems to be our answer to automated shutdown. However our department is new to configuration manager and we are only able to get the tool to run once. Is there any way that the instructions can be updated for SCCM 2012?

    • Mike says:

      we figured this out, in the deployment section, change to always rerun. However we are now running into the tool shuting down the computer if the computer was off at the time of scheduled shutdown and it has been booted in the morning.

      • Jim says:

        “However we are now running into the tool shutting down the computer if the computer was off at the time of scheduled shutdown and it has been booted in the morning”

        Did you find a solution to this problem. I also work for a school district and I’m having the same issue?

  23. […] intelligence 3rd party software utility Coretech application e-mail approval tool Coretech shutdown tool Coretech Package Source Changer Right click Tools SCCM 2012 Toolkit MDT 2013 Package Conversion […]

  24. Omar says:

    Could you share an example of registry condition? TKS.

  25. alex says:

    Have some trouble with running on x64 machine as x32 process.
    util is running bud didn’t show any messages.

    CMD.exe 32 bit starts cmd file with line:
    ShutdownTool.exe /eps:”tsprogressui.exe”!= /l /t:3600 /d:”Logoff action required”

    • Jonas says:

      Hey Alex,

      can confirm this one. E.g. on a win8.1 x64 machine, the process is launched, but the dialog isn’t visible… :/

      • Jonas says:

        Fixed! In ConfigMgr, you have to uncheck the option to treat the application as 32 bit process!

        • alex says:

          I’m sorry but this option is required by installed application. I can’t uncheck it (( then installation fill failed.

          Another problem is shutting down of processes. For example when notepad.exe is running under user1 and user2 (win7) then util kills only process for one (currently working) user. Is it possible to kill processes from all users?

  26. Harmen says:

    I start the tool 2x from the task scheduler, the first step is a logoff and the second step is shutdown. But it does sometimes happen that a user the next morning after computer startup and logon computer spontaneous logout and switch-off.

    How do I make sure that the computer properly log off and switch-off without the next morning it still wants to run, because the night before it failed.

    Thanks,
    Harmen

  27. alex says:

    Hi!
    When use argument /ps only 4 lines are shown in the window. But my stop list has 8.
    Can you fix this in the future version please.
    Thank you!

  28. Cristopher_WPU says:

    Transparency…. Is there a way to run this program without any transparency? I have added a logo and some lines of text but the transparency is distracting to end-users. Thanks for making such a great tool.

  29. JoJo says:

    Found your tool and works great. One question when I ran the command to reboot ex: ShutdownTool_NoBack.exe /r:300 /m:30. the countdown timer only gives it 60 seconds not 300 seconds. Is there something I am doing wrong?

  30. JoJo says:

    Found your program and like very much. Got one questions when I ran this command for the reboot ShutdownTool_NoBack.exe /r:300 /m:30 /c I am only getting 60 seconds to postpone, reboot or our use the drop down menu. When I use the same command with /t:300 I get the 300 seconds. Is there something I am doing wrong.

  31. Frode Dragland says:

    Nice tool.

    Small correction in demo text for closing multiple processes (IE + Word): iexplorer.exe => iexplore.exe

    Issue: While it’s possible to target processes by wildcard (like in taskkill.exe /f /im winword*), the display name list then shows up as empty.
    Try:
    /ps:”iexplore*”*”My internet explorer”:”winword*”*”Outlook editor running”
    Then:
    /ps:”iexplore.exe”*”My internet explorer”:”winword.exe”*”Outlook editor running”
    Both options will close the programs, but only the last will display a list of programs to close with status for each.

    Is it possible to add linebreaks in the Description text via command line? Tried Powershell/command prompt tricks with \n ^ or `n, but does not work. Am I overlooking some documentation?

    /d:”Sometext with a linebreak \n Then more info”

    Using the .txt and .rtf files for description is a workaround, but not a good one for multiple programs in same package.

  32. Red says:

    Hi,
    great tool and work, but I have a couple of question:
    1) Which is the latest release and where to grab it (working with XP and 7 64 bit)?!?
    2) How do U manage a SCCM Task Sequence, when You need to be sure to have a reboot before proceeding with the installation ?!? I suppose it would be fine to have different exit code for “reboot selected” and “Postpone selected”.
    Thank you for your work.

    Red.

  33. Wilfrid says:

    Hi

    I just discover this great tool. It’s awesome :)

    Got two questions on it :

    – Is there a way to not set/disable the countdown ?
    – how is /g working. I tried to use it in many ways but it remains english?

    Thanks

    • Wilfrid says:

      Sorry for duplicate comment :miss click :(

      Comment :
      it seems /g option is working but only with some languages.
      Does not work with fr-FR for example

      thx

    • Wilfrid says:

      Second comment :

      – Maybe a timeout switch could be helpful. I mean after xx seconds automatically abort (if /f option is not set of course)

      Last comment for the day :)

      thx

  34. Norbert says:

    Hi,
    it’s a great and helpfully tool.
    But I have a problem when I try to use it with Windows XP.
    When I start Shutdown tool with my user account I can use it without problems.
    Do you know why the shutdown tool do not work with the “System User”?
    It is shown in the processes but not on the screen.

    thx

  35. Lars says:

    Hi,

    Seems there are several in here not being able to utilize the /ps parameter.
    Can you please elaborate on how to use that?

    Thanks.

  36. Lars says:

    Seems it´s the type of quotes used, that´s the problem. Replace the ” in the example with ” from your own keyboard, so to speak. Doing this with the 0.9.2BETA works…

    shutdowntool.exe /ps:”Iexplore.exe”*”Internet Explorer” /d:”We are about to install a new version of Java. Please shut down Internet Explorer to start the installation” /c

    Hope it helps…

  37. Ed says:

    Hi there,
    Great tool and great presentation on SCU 2015.
    How do you use the tool to mass reboot all the machines that have not rebooted in 30 days? Do I deploy the tool to all machines or run it from the the sccm node?

    thank you,

  38. Dean. says:

    Hi gents
    this tool works supper great
    just want to know how i can disable the minize button so it stays open

  39. Aleksandr says:

    Is there any option to resize main window to fit required text in it? I must prepare bilingual text in my environment and brevity is not always the sister of talent…

  40. Sam says:

    Hi Kent

    We are using this tool and i am getting a exit code 1073807364 on atleast 10% of the deployed machine. Can i know what does this exit code mean.

    Thanks

  41. Sukhvinder says:

    I get unhandled exception has occurred in your application when the user clicks on postpone or minimise option, is there a dependency on specific .NET version?

  42. Claudio says:

    Thanks for releasing this great tool.
    Please advise if there is any possible way to customise the “Restart in Progress” header message. Also is there any possibility of changing the bacground texture/colour in future versions of the tool?
    Thanks

  43. Amnon says:

    The tool has some serious flaw, not the quality we used to from coretech. For SUS updates and reboot purpose, I use PSAppDeploy from http://psappdeploytoolkit.com/, it is ore flexible and allows you to use proper English :-)

    • Claus Codam Claus Codam says:

      Hi Amnon,
      Thank you for making our visitors aware of the PSAppDeploy tool, we always encourage people to share information.
      I’d like to state, that this is a free tool, made several years ago, and at peoples disposal to use anyway they see fit.
      If you have found any serious flaws in the tool, or in the language used, please let us know, so we can fix it.

  44. Sean P says:

    Do you have a list of languages that are supported for the interface?
    I am trying to deploy to the following languages: cs-CZ, da-DK, de-DE, el-GR, es-ES, fi-FI, fr-FR, hu-HU, it-IT, ja-JP, ko-KR, nb-NO, nl-NL, pl-PL, pt-PT, ro-RO, ru-RU, sk-SK, sv-SE, zh-CN

    In my tests, only the following worked for me: da-DK, hu-HU, nl-NL, pl-PL, sk-SK, sv-SE

    If you need assistance in translations, I have colleagues in all of these locations that would be happy to assist.

    Thanks!
    Sean

  45. Michael says:

    Hi!

    Thanks for a great tool!
    I’m looking for a way to handle reboots after we’ve deployed Windows Updates. The way SCCM 2012 handles it isnt realy what our users want, so i stumbled uppon this tool but what i can understand i can’t handle the registry entry that becomes available after the patches has been applyed.

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\] PendingFileRenameOperations. The Value after that will be different each month depending on what changes are made in the update, so i cant target the value, and “PendingFileRenameOperations” isnt a Value nor a Key.

    Anyone have an idea how to work with this?

    Thanks,
    Michael

  46. Cat says:

    Hi,
    Just experimenting with this nice tool. As with others, I’m having an issue setting the language. I’d like to set it to French but not sure what code to use.

    Also, when using the /ps option would it be possible to add the /t:xxx and /m:xxx options?…I’d like to be able to limit how long a user can postpone killing a process.

    Thanks.

  47. Cat says:

    OK…must have had a syntax error before, this works with a 2 min timer (no postpone)

    shutdowntool.exe /c /f /t:120 /m:0 /d:”Close these apps” /ps:”calc.exe”*”Calculator”:”notepad.exe”*”Notepad”

    Still can’t get French language though…

  48. Dave says:

    I can’t seem to get the /ps: switch to work. I have even copied dorectly out of this blog and it still doesnt work. If I could get this working, it would be great. Is there anyway to remove the countdown to force the reboot? I jsut 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)

  49. Fabian says:

    Hi and thank you very much for this tool. We are using it with SCCM 2012 R2.
    It works fine in a batch script but only when the new application is not configured as supersedence. If the new application supersedes an old one, the tool does not appear on the user’s screen but is listed in running tasks.
    Does anyone get this tool to show up when using the installation as supersedence?

  50. Jeremy says:

    This article has not been updated since 2012. Is this tool updated at all? I tried installing this on Windows 10 and it complained about Windows .NET 3.5 not installed, will you update this tool for .NET 4? Do you have detailed instructions on how to fully deploy this in SCCM 2012 R2? We are fairly new to SCCM and this tool looks like it could be very helpful.

  51. RME says:

    Dear All,

    Thank you very much for this tool.
    It’s does not appear on the users screen but is listed in running task (SCCM 2012R2).
    Anyone resolved this issue, Please update me. It could be very helpful.

    • RME says:

      Yes. It’s resolved.

      • Jack says:

        Jeremy,RMF, Kevin,
        Can you pelase elaborate on how you resolved the tool running but not visible on workstations? We have the same problem on many Win 7 machines.

        Thanks
        Jack

  52. Jeremy says:

    I agree with what RME said above, Users do not see a notification screen, but the pc does reboot. We are running this from SCCM 2012 R2, and it is running on Windows 10 workstations. Is there any fix for this or a command line to make it show?

  53. Kevin says:

    Jeremy, I had a problem yesterday with users not seeing the notification on a machine, and it turned out that there were multiple disconnected sessions on that box. I logged those users off, and the notification was visible the next time I deployed it.

    Were you able to get it to run on Windows 10? I just get the prompt to download the .net framework 3.5…

    My shutdown tool version is .9.6.0

  54. SegunB says:

    @ Kelvin,

    Could you kindly share the link to download the Shutdown tool version 0.9.6.0, I have the 0.9.2B6.

  55. Jack says:

    Jeremy,RMF, Kevin,
    Can you pelase elaborate on how you resolved the tool running but not visible on workstations? We have the same problem on many Win 7 machines.

    Thanks

  56. Kevin says:

    Hi Jack, The only thing I could find was that, if multiple users are logged into the machine with disconnected sessions, the tool doesn’t seem to show up for anyone. As for getting it to run on Windows 10, it started working magically for me this week. I’m guessing it was an update that I deployed.

    Good luck.

    Kevin

  57. Parveen says:

    Hi All, I have an issue while testing this tool to deploy in my sccm envviornment. Shutdown tool start running even when screen is locked. Does a lock screen is considered an interactive user?

    I tried using /eu:true Only run if computer has an Interactive User.

    Any help is appreciated.

Leave a Reply