Is it possible to schedule a package to download and then install the package before a computer shuts down?
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:
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
Post the entries from WindowsUpdate.log showing the download and shutdown events, please.
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 *************
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 = 12014-03-20 10:59:14:509 728 720 Agent * Title = Change Pro 7.5.0.802014-03-20 10:59:17:911 728 350 DnldMgr BITS job {668533C1-3357-483C-A7F2-85DA223AED65} completed successfully2014-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 shutdown2014-03-20 11:01:03:364 728 e30 AU Successfully wrote event for AU health state:02014-03-20 11:01:03:364 728 e30 AU AU initiates service shutdown2014-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 *************
2014-03-20 10:59:14:509 728 720 DnldMgr ** START ** DnldMgr: Downloading updates [CallerId = EminentWare Extension Pack - ARTHURCOX\swpm]
How was this shutdown event initiated?
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.)