Download
for Windows

ShutdownWithUpdates

Install Pre-Downloaded Updates & Shutdown System.

Version: 1.2.4.0
Size: 24.3K
Compatibility: Windows Vista/7/8/10*
Windows Server 2008/R2/2012/R2/2016*

Description

App Icon Command line utility that initiates installation of pre-downloaded updates on the Windows system & reboots, or shuts it down. This tool can also reboot (or shut down) your computer without installation of updates, or perform actions on condition of updates being ready for a restart. Optionally, this tool allows to specify a boot into advanced boot options menu in Windows 8/10.

Note that if Windows updates were not downloaded prior to calling this utility, the OS will simply perform a power operation similar to the Microsoft's shutdown tool.

To provide transparency for the enterprise & corporate users, this project is provided as open source.

Screenshots

Review the following screenshots of the ShutdownWithUpdates software:

Manual

Included in the download package. Check INFO file.

Check the following command line parameters & examples of use:


Usage:
       ShutdownWithUpdates [/s | /r | /hs | /g | /a | /?] [/f] [/v] [/nu]
        [/m \computer] [/t x] [/c "msg"] [/d [p|u:]xx:yy] [/arso]
        [/irr | /crr | /wrr]

 Windows 10: This process may require to run as administrator for some options.

  /s    Install updates & shut down computer.
         (Updates must be already downloaded on computer being shut down.)
  /r    Install updates & reboot computer.
         (Updates must be already downloaded on computer being rebooted.)
  /hs   Install updates & initiate hybrid shut-down of computer. (Windows 8,10)
         (Updates must be already downloaded on computer being shut down.)
  /g    Install updates & reboot computer & restart registered applications.
         (Updates must be already downloaded on computer being rebooted.)
  /abo  Go to advanced boot options menu. (Windows 8,10)
         (Pre-Windows 10: Updates will not be installed.)
  /a    Abort previous shut-down/rebooting.
         (Can be used only during previous time-out period.)
  /f    Use forced action.
         WARNING: May result in the loss of unsaved data on target computer!
  /irr  Allow operations only if updates are installed and ready for reboot.
         (Local Windows 10 only.)
         (Will exit with error code 1235 if updates are not ready.)
  /crr  Only check if updates are installed and ready for reboot.
         (Local Windows 10 only. Can't be used with other parameters.)
         (Will exit with code 0 if updates are not ready, or 350 if they are.)
  /wrr  Wait for updates to be installed and ready for reboot before proceeding.
         (Local Windows 10 only.)
  /arso Enables "Winlogon automatic restart sign-on". (Local Windows 10 only.)
         INFO: https://dennisbabkin.com/r/?to=arso
  /v    Show user confirmation before proceeding.
         (Local computer only. It is shown before time-out is initiated.)
  /nu   Not to install updates.
         (Local Windows 10 only. Must be running as administrator.)
  /m \computer    Specify target/remote computer.
  /t x  Set time-out before performing action to x seconds.
         (Valid range is 0-315360000, or 10 yrs, with a default of 0.)
  /c "msg"      Message to be displayed in the interactive shutdown dialog box.
                 (Maximum of 512 characters is allowed.)
  /d [p|u:]xx:yy  Reason for shut-down or rebooting (used for logging):
                   p if action was planned.
                   u if action was user-defined.
                   (If neither p or u is used, assumes unplanned.)
                   xx = major reason number (less than 65536.)
                   yy = minor reason number (greater than 65536.)
                        (Reason numbers can be decimal or hex if begin with 0x)
        For major and minor reason values check "System Shutdown Reason Codes":
         https://dennisbabkin.com/r/?to=win32sdrc

  /?    Show command line help.

Exit Codes:
 0      if success.
 -1     if general failure in the module.
 Other  if error, will contain "System Error Code". For details check:
         https://dennisbabkin.com/r/?to=win32errs

For additional error details check Windows Event Log under "ShutdownWithUpdates" source.


Examples:
(1) Install updates and reboot local computer without a delay:
    (Fail if unsaved user data on computer.)

      ShutdownWithUpdates /r

(2) Install updates and shut down local computer after 30 sec delay:
    (Force applications with unsaved data to close & lose data! Show message.)

      ShutdownWithUpdates /s /f /t 30 /c "Forced shut-down in 30 sec!"

(3) Reboot local computer only if updates are ready to install:
    (Fail if unsaved user data on computer, or updates aren't ready.)

      ShutdownWithUpdates /r /irr

(4) Simply wait until updates are ready to install on local computer,
     and then start a calculator:

      ShutdownWithUpdates /wrr
      calc.exe

(5) Do not install updates and shut down local computer:
    (Fail if unsaved user data on computer. Must run as administrator!)

      ShutdownWithUpdates /s /nu

(6) Do not install updates and reboot remote computer after a 20 sec delay:
    (/nu option is not supported on Windows 10 for remote computer.)
    (Fail if unsaved user data on remote computer.)
    (Specify reason as planned, application issue, installation.)

      ShutdownWithUpdates /r /nu /m \MYSERVER /t 20 /d p:0x00040000:0x00000002


Requirements

On Windows 10 & Server 2016 some updates may be installed unconditionally.

Pricing

Totally free. Customization available.

License

You may use this software for as long as you need it, make as many copies of the downloaded package as required, and distribute it among any people and organizations at no cost.

You are NOT ALLOWED to modify or rename any parts of the downloaded package and/or the manual within it; distribute it under a different title and/or author's name; repackage or re-distribute separate components of the downloaded package; sell, rent or receive any financial gain from this software.

Disclaimer

The authors of this web site and of this particular software guarantee that this computer program does not contain any intentionally deleterious or harmful material that may somehow adversely affect your system. All software posted on this web site is custom-built computer programs that were designed primarily for our personal use. We test it for some time before posting it here. In spite of that and due to the fact that we are human, we do not exclude a possibility for this software to contain errors and unintended bugs that may present misinformation in programmatic sense and/or may temporarily affect your computer's stability. If such is the case, let us know through the feedback on this site and we will do our best to correct the problem and supply you with the latest update.

And last, by downloading and using this software you agree to do so "as is" without any implied or expressed liability from the authors and/or distributors of this software.

Social Media

Donate

Support our efforts to create better software

Adware Free

We promise that the installation package that you download from this page will not contain any adware, marketing toolbars, or other "nuisance" software not associated with the product described on this page.

Download

Windows Vista/7/8/10 & Windows Server 2008/R2/2012/R2/2016
Source Code

User Feedback