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.


Comments (12):

  1. Wojciech Sciesinski says:

    Hi!

    Thanks for great tool!

    Do you plan add multilingual support for GUI?

    • Claus Codam Claus Codam says:

      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 says:

    Hi,

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

    • Claus Codam Claus Codam says:

      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 says:

      @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 says:

    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?

  4. Patrick says:

    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: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired

    Thanks.

  5. Rajeesh says:

    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 Claus Codam says:

      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 says:

    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

Leave a Reply

CAPTCHA Image
(required)