Coretech shutdown utility 0.81

Updated version of the shutdown utility is ready for download. Thanks to Tom for reporting a bug in the previous version.

Bug Fixes:

Fixed Memory Leak, which let the program consume up to 160MB.

Fixed /eb switch generating a file instead, changed argument syntax to /ebM:xxx and /ebL:xxx

 

ShutdownTool.exe [/t] [/d] [/m] [/r | /l] [/f] [/c] [/eb] [/es] [/er]

No args                 Shutdown procedure with default settings.

/?                             Display help.

/t:xxx                     Sets countdown time to xxx seconds. (Default 60)

/m:xxx                  Sets max allowed extension to xxx minutes. (Default 1440)

/d:”xxx”               Sets description to xxx.

                                 This can also be set, by placing a .txt file next to the tool.

/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. Also triggers /f

/e:xxx                    Deprecated (use /es<xxx instead)

/ebM:xxx             Only run if last boot time was more than xxx hours ago.

/ebL:xxx               Only run if last boot time was less than xxx hours ago.

/esM:xxx              Only run if last shutdown time was more than xxx hours ago.

/esL:xxx               Only run if last shutdown time was less than xxx hours ago.

/er:”p”==”v”      Only run if (p)RegistryKey value equals (v)Value.

/er:”p”!=”v”        Only run if (p)RegistryKey value not equals (v)Value.

 

Examples:

Command:           /t:300 /m:60 /d:”Because I said so!” /f /c

Description:       Shutdown the computer in 300 seconds(t),

                                  with the ability to postpone a total of 60 minutes(m),

                                  force the shutdown(f), and disable the ability to abort(c).

Command:          /er:”HKLM\SOFTWARE\CT\Name”==”Coretech”

Description:       Shuts down the computer in 60 seconds,

                                  with the ability to postpone a total of 1440 minutes,

                                  only if the value of registry key Name equals Coretech(er).

 

Description from text file:

Include a .txt file in the same folder, with the same name as the program.

i.e ShutdownTool.txt

 

Company Logo:

Include a picture in the same folder, with the same name as the program.

i.e ShutdownTool.png, ShutdownTool.jpg or ShutdownTool.bmp”

 

All creadit goes to Claus Codam, System Center developer.

By | 2012-02-19T18:31:20+00:00 February 19th, 2012|Configuration Manager (SCCM), General info, Tools|13 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.

13 Comments

  1. Wojciech Sciesinski February 23, 2012 at 21:44 - Reply

    Hi!

    Thanks for great tool!

    Do you plan add multilingual support for GUI?

    • Claus Codam March 1, 2012 at 15:52 - Reply

      Hello Wojciech,

      Localization is in the works, and will be a functionality of the next version.
      We are looking for people to submit the translations.
      I’ve send you an e-mail, regarding this.

  2. John March 15, 2012 at 13:44 - Reply

    Hi,

    /r switch doesn’t seem to work with this version.

    • Claus Codam March 15, 2012 at 15:02 - Reply

      Hi John,

      I’ve just checked the /r switch in this version, and everything about it works for me.
      It changes both the text on the form, and correctly restarts the computer when the countdown hits zero.

      Please elaborate on your problem with the /r switch.
      What exactly isn’t working for you?
      Which OS are you running the utility on?

    • Kevin April 10, 2012 at 16:12 - Reply

      @John,

      If you are using /r with /f and /c in the command line, try removing the /f. Since the /c implies /f already, it does not need to be there. I was seeing the same issue. My command line was ShutdownTool_NoBack.exe /r /t:300 /m:0 /d:”Message to user” /f /c

      When i removed the /f it worked.
      ShutdownTool_NoBack.exe /r /t:300 /m:0 /d:”Message to user” /c

  3. Chris March 15, 2012 at 14:45 - Reply

    Hi,

    would it be possible to add a parameter to skip the countdown when no user is logged on? Or do i miss the trick how it can be combined with standard techniques?

    • Claus Codam March 15, 2012 at 15:08 - Reply

      Hi Chris,

      This is allready incorporated into the next version, which will be out sometime next week.
      If you have any other suggestions, please let us know.

      Thanks.

      • Chris April 16, 2012 at 8:19 - Reply

        Hi Claus,

        are there any news regarding the release date of the new version?

  4. Patrick March 23, 2012 at 20:13 - Reply

    Hello,

    Thank you for all your work creating this tool.

    How can I use the Registry Key command line switch to run shutdowntool.exe based on only if a reg key exists? (If I didn’t know any of the Name/Value pairs under the reg key ahead of time) Or is there some way to check for the “Default” valueless Name/Value pair using the /er: switch?

    The reg key I would like to check for is: HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired

    Thanks.

  5. Rajeesh April 3, 2012 at 13:23 - Reply

    Hi Claus,
    Thanks for the wonderful and easy to use tool. I have updated the same on my blog.
    It seems that the example command is wrong, and that runs fine when i remove the backslash() before the Quotation marks as given below:
    Command: /t:300 /m:60 /d:”Because I said so!” /f /c

    • Claus Codam April 10, 2012 at 8:36 - Reply

      Hi Rajeesh,

      You are absolutely correct, thoose escaping backslahes aren’t supposed to be there…Damn copy-paste!
      Thanks for the notification, i’ve corrected the “typo”.

  6. Ryan April 19, 2012 at 21:24 - Reply

    Hey Kent,

    I was in your CM 2007 R3 Cleanup class at MMS and you showed the shutdown tool. Seems really slick! It got me thinking, do you have a tool with simialr fuctionality that would close IE rather than shutdown/reboot? I often have to close IE with 3rd party updates, jre, quicktime, etc… I hate having to force close IE sessions if a user could be potentially working.

    Thanks

  7. Marco March 29, 2017 at 10:01 - Reply

    The tool is amazing! Many Thanks.
    I need your help. I am in the IT training and would like to introduce the tool in the school. Unfortunately, I do not understand how I need to integrate the tool into SCCM so that runs after a software Installation from SCCM. I read the article How to configure the tool In Configuration Manager but dont undestand where I Need to create the programs in the package to control the Shutdowntool..
    I would like to install a software via SCCM which runs the tool after the instalaltion with the Notification Window.
    Did exist an German language pack for the tool ?
    Thanks in advance
    Marco

Leave A Comment