11 Replies Latest reply on Mar 20, 2014 12:56 PM by Lawrence Garvin

    scheduling a package

    alan.dunne

      Is it possible to schedule a package to download and then install the package before a computer shuts down?

        • Re: scheduling a package
          Lawrence Garvin

          Yes.

          Use the Download Only feature of the Update Management tool to force the download to occur at a specified time,

          and then ensure that the client is configured to use "Install Updates and Shutdown",

          and that the user understands this will happen when they launch the shutdown.

           

          Two notes:

          • There are ways an advanced user can end-run this behavior (on Windows XP its presented in a menu; on Windows 7 it can be avoided using the CLI SHUTDOWN.EXE command).
          • Windows 8 and Window Server 2012 (and successors) no longer perform an Install Updates and Shutdown, but rather an Install Updates and Restart.
            • Re: scheduling a package
              alan.dunne

              Hi

               

              I have downloaded the package but when I shut down the pc, it didn’t run the package

              Install updates on shutdown is configured.

               

               

               

              Regards

               

              Alan Dunne

                • Re: scheduling a package
                  Lawrence Garvin

                  Post the entries from WindowsUpdate.log showing the download and shutdown events, please.

                    • Re: scheduling a package
                      alan.dunne

                      014-03-20 10:59:14:509  728 720 DnldMgr ** START **  DnldMgr: Downloading updates [CallerId = EminentWare Extension Pack - ARTHURCOX\swpm]

                      2014-03-20 10:59:14:509  728 720 DnldMgr *********

                      2014-03-20 10:59:14:509  728 720 DnldMgr   * Call ID = {208BFA88-48E3-4724-BA78-9A1AE2CCCFC9}

                      2014-03-20 10:59:14:509  728 720 DnldMgr   * Priority = 3, Interactive = 1, Owner is system = 1, Explicit proxy = 1, Proxy session id = -1, ServiceId = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7}

                      2014-03-20 10:59:14:509  728 720 DnldMgr   * Updates to download = 1

                      2014-03-20 10:59:14:509  728 720 Agent   *   Title = Change Pro 7.5.0.80

                      2014-03-20 10:59:14:509  728 720 Agent   *   UpdateId = {97616462-92F8-4793-BE05-13E9BF6B5C5C}.1

                      2014-03-20 10:59:14:510  728 720 DnldMgr ***********  DnldMgr: New download job [UpdateId = {97616462-92F8-4793-BE05-13E9BF6B5C5C}.1]  ***********

                      2014-03-20 10:59:14:515  728 720 DnldMgr   * BITS job initialized, JobId = {668533C1-3357-483C-A7F2-85DA223AED65}

                      2014-03-20 10:59:14:524  728 720 DnldMgr   * Downloading from http://sophosav/Content/9C/94C59C404596FA9E374C5F22C2930AF720281B9C.cab to C:\Windows\SoftwareDistribution\Download\f7dc29667814cc5a35195a37cba477d5\94c59c404596fa9e374c5f22c2930af720281b9c (full file).

                      2014-03-20 10:59:14:537  728 720 Agent *********

                      2014-03-20 10:59:14:537  728 720 Agent **  END  **  Agent: Downloading updates [CallerId = EminentWare Extension Pack - ARTHURCOX\swpm]

                      2014-03-20 10:59:14:537  728 720 Agent *************

                      2014-03-20 10:59:17:911  728 350 DnldMgr BITS job {668533C1-3357-483C-A7F2-85DA223AED65} completed successfully

                      2014-03-20 10:59:18:338  728 350 Misc Validating signature for C:\Windows\SoftwareDistribution\Download\f7dc29667814cc5a35195a37cba477d5\94c59c404596fa9e374c5f22c2930af720281b9c:

                      2014-03-20 10:59:18:737  728 350 Misc  Microsoft signed: No

                      2014-03-20 10:59:18:737  728 350 Misc Trusted Publisher: Yes

                      2014-03-20 10:59:18:739  728 350 DnldMgr   Download job bytes total = 171924752, bytes transferred = 171924752

                      2014-03-20 10:59:18:740  728 350 DnldMgr ***********  DnldMgr: New download job [UpdateId = {97616462-92F8-4793-BE05-13E9BF6B5C5C}.1]  ***********

                      2014-03-20 10:59:19:170  728 350 DnldMgr   * All files for update were already downloaded and are valid.

                      2014-03-20 10:59:24:225  728 720 Report REPORT EVENT: {6EABD7F9-6397-4D3A-9F9E-BE80BC80A275} 2014-03-20 10:59:19:225-0000 1 162 101 {97616462-92F8-4793-BE05-13E9BF6B5C5C} 1 0 EminentWare Extension Pack - AR Success Content Download Download succeeded.

                      2014-03-20 10:59:24:225  728 720 Report CWERReporter finishing event handling. (00000000)

                      2014-03-20 11:01:03:364  728 e30 Shutdwn user declined update at shutdown

                      2014-03-20 11:01:03:364  728 e30 AU Successfully wrote event for AU health state:0

                      2014-03-20 11:01:03:364  728 e30 AU AU initiates service shutdown

                      2014-03-20 11:01:03:364  728 e30 AU ###########  AU: Uninitializing Automatic Updates  ###########

                      2014-03-20 11:01:03:364  728 e30 Report CWERReporter finishing event handling. (00000000)

                      2014-03-20 11:01:03:520  728 e30 Service *********

                      2014-03-20 11:01:03:520  728 e30 Service **  END  **  Service: Service exit [Exit code = 0x240001]

                      2014-03-20 11:01:03:520  728 e30 Service *************

                        • Re: scheduling a package
                          alan.dunne

                          Hi

                           

                          Would it be because I have the package as declined in patch manager therefore it needs to be approved?

                            • Re: scheduling a package
                              Lawrence Garvin

                              Would it be because I have the package as declined in patch manager therefore it needs to be approved?

                              The WUA cannot install a declined update.

                                • Re: scheduling a package
                                  alan.dunne

                                  I approved the package and still the same thing happens.

                                    • Re: scheduling a package
                                      Lawrence Garvin
                                      I approved the package and still the same thing happens.

                                      I would suggest setting aside the concerns about whether the update installs at shutdown for now, and for the moment focus on whether the package is even installable at all.


                                      Is the package listed as "Not Installed" in the console for this system?


                                      Run a DETECTION event on this client and let it actually SCAN the WSUS Server and FIND the update and REPORT it state for the update.

                                      If it properly detects the update as installable, it will download the update immediately, and if the update is already downloaded (it is), it will log that fact, also.

                                      And then create a REPORT EVENT entry showing that the update has been scheduled (or requires administator interaction) to be installed.



                                • Re: scheduling a package
                                  Lawrence Garvin

                                  2014-03-20 10:59:14:509  728 720 DnldMgr ** START **  DnldMgr: Downloading updates [CallerId = EminentWare Extension Pack - ARTHURCOX\swpm]

                                   

                                  2014-03-20 10:59:14:509  728 720 DnldMgr   * Updates to download = 1

                                  2014-03-20 10:59:14:509  728 720 Agent   *   Title = Change Pro 7.5.0.80

                                   

                                  2014-03-20 10:59:17:911  728 350 DnldMgr BITS job {668533C1-3357-483C-A7F2-85DA223AED65} completed successfully

                                   

                                  2014-03-20 10:59:24:225  728 720 Report REPORT EVENT: {6EABD7F9-6397-4D3A-9F9E-BE80BC80A275} 2014-03-20 10:59:19:225-0000 1 162 101 {97616462-92F8-4793-BE05-13E9BF6B5C5C} 1 0 EminentWare Extension Pack - AR Success Content Download Download succeeded.

                                   

                                  2014-03-20 10:59:24:225  728 720 Report CWERReporter finishing event handling. (00000000)

                                  2014-03-20 11:01:03:364  728 e30 Shutdwn user declined update at shutdown

                                  2014-03-20 11:01:03:364  728 e30 AU Successfully wrote event for AU health state:0

                                  2014-03-20 11:01:03:364  728 e30 AU AU initiates service shutdown

                                  2014-03-20 11:01:03:364  728 e30 AU ###########  AU: Uninitializing Automatic Updates  ###########

                                  2014-03-20 11:01:03:364  728 e30 Report CWERReporter finishing event handling. (00000000)

                                  2014-03-20 11:01:03:520  728 e30 Service *********

                                  2014-03-20 11:01:03:520  728 e30 Service **  END  **  Service: Service exit [Exit code = 0x240001]

                                  2014-03-20 11:01:03:520  728 e30 Service *************

                                  How was this shutdown event initiated?

                                    • Re: scheduling a package
                                      alan.dunne

                                      Shutdown was initiated by going start - shutdown

                                        • Re: scheduling a package
                                          Lawrence Garvin

                                          Shutdown was initiated by going start - shutdown

                                          On what operating system? With which logged-on user?

                                          What are the configuration options of the WUAgent on this system?

                                           

                                          Notwithstanding the question of the approval state of the update -- which is most certainly a critical question to be resolved -- most notably missing from this logfile is the recording of a REPORT EVENT entry which should have occurred immediately after the REPORT EVENT for the successful download.

                                          AutomaticUpdates Success Content Install Installation Ready: The following updates are downloaded and ready for installation. This computer is currently scheduled to install these updates on Friday, March 21, 2014 at 6:00 AM:  - Definition Update for Microsoft Security Essentials - KB2310138 (Definition 1.169.297.0)

                                           

                                          The lack of such an entry tells me that the update isn't scheduled/available for installation, thus it did not install.

                                          (Running a reboot immediately after the download event completes is probably not helpful either.)