Answered WinHttpDownloadFileToMemory

  • Tuesday, December 02, 2008 7:21 AM
     
     
    Hello,

    We are running a test system center essential, and the clients could not get updates from server. Even the server itself could not update itself.

    Can you help?

    WSUS Client Diagnostics Tool

    Checking Machine State
    Checking for admin rights to run tool . . . . . . . . . PASS
    Automatic Updates Service is running. . . . . . . . . . PASS
    Background Intelligent Transfer Service is running. . . PASS
    Wuaueng.dll version 7.2.6001.788. . . . . . . . . . . . PASS
    This version is WSUS 2.0

    Checking AU Settings
    AU Option is 4: Scheduled Install . . . . . . . . . . . PASS
    Option is from Policy settings

    Checking Proxy Configuration
    Checking for winhttp local machine Proxy settings . . . PASS
    Winhttp local machine access type
    <Using Proxy>
    Winhttp local machine Proxy
    y.128.1.3:8082
    Winhttp local machine ProxyBypass
    localhost;testsce10.x.hu;y.128.1.121;testsce10.x
    .hu:8531;<local>
    Checking User IE Proxy settings . . . . . . . . . . . . PASS
    User IE Proxy
    y.128.1.3:8082
    User IE ProxyByPass
    localhost;testsce10.x.hu;y.128.1.121;testsce10.x
    .hu:8531;<local>
    User IE AutoConfig URL Proxy . . . . . . . . . NONE
    User IE AutoDetect
    AutoDetect in use

    Checking Connection to WSUS/SUS Server
    WUServer = https://testsce10.x.hu:8531
    WUStatusServer = https://testsce10.x.hu:8531
    UseWuServer is enabled. . . . . . . . . . . . . . . . . PASS
    Connection to server. . . . . . . . . . . . . . . . . . PASS

    WinHttpDownloadFileToMemory(szURLDest, NULL, 0, NULL, NULL, NULL, &downloadBuffe
    r) failed with hr=0x80072efd

    A connection with the server could not be established


    Press Enter to Complete

    Client side:


    WSUS Client Diagnostics Tool

    Checking Machine State
    Checking for admin rights to run tool . . . . . . . . . PASS
    Automatic Updates Service is running. . . . . . . . . . PASS
    Background Intelligent Transfer Service is running. . . PASS
    Wuaueng.dll version 7.2.6001.788. . . . . . . . . . . . PASS
    This version is WSUS 2.0

    Checking AU Settings
    AU Option is 4: Scheduled Install . . . . . . . . . . . PASS
    Option is from Policy settings

    Checking Proxy Configuration
    Checking for winhttp local machine Proxy settings . . . PASS
    Winhttp local machine access type
    <Direct Connection>
    Winhttp local machine Proxy. . . . . . . . . . NONE
    Winhttp local machine ProxyBypass. . . . . . . NONE
    Checking User IE Proxy settings . . . . . . . . . . . . PASS
    User IE Proxy. . . . . . . . . . . . . . . . . NONE
    User IE ProxyByPass. . . . . . . . . . . . . . NONE
    User IE AutoConfig URL Proxy . . . . . . . . . NONE
    User IE AutoDetect
    AutoDetect in use

    Checking Connection to WSUS/SUS Server
    WUServer = https://testsce10.x.hu:8531
    WUStatusServer = https://testsce10.x.hu:8531
    UseWuServer is enabled. . . . . . . . . . . . . . . . . PASS
    Connection to server. . . . . . . . . . . . . . . . . . PASS

    WinHttpDownloadFileToMemory(szURLDest, NULL, 0, NULL, NULL, NULL, &downloadBuffe
    r) failed with hr=0x80072efd

    A connection with the server could not be established


    Press Enter to Complete

    iis setup: integrated authentication enabled for:

    SimpleAuthWebService", "Content", "ClientWebService", "ReportingWebService" and the "SelfUpdate"

    server windowsupdate.log

    2008-11-26 11:33:53:234 808 1474 Agent *************
    2008-11-26 11:33:53:234 808 1474 Agent ** START ** Agent: Finding updates [CallerId = MicrosoftUpdate]
    2008-11-26 11:33:53:234 808 1474 Agent *********
    2008-11-26 11:33:53:234 808 1474 Agent * Online = No; Ignore download priority = No
    2008-11-26 11:33:53:234 808 1474 Agent * Criteria = "IsInstalled = 0 and IsHidden = 1"
    2008-11-26 11:33:53:234 808 1474 Agent * ServiceID = {7971F918-A847-4430-9279-4A52D1EFE18D}
    2008-11-26 11:33:53:234 808 1474 Agent * Search Scope = {Machine}
    2008-11-26 11:33:53:234 808 f64 AU >>## RESUMED ## AU: Search for updates [CallId = {58DE3B66-107F-4404-9093-6A9AA3214749}]
    2008-11-26 11:33:53:234 808 f64 AU # 0 updates detected
    2008-11-26 11:33:53:234 808 f64 AU #########
    2008-11-26 11:33:53:234 808 f64 AU ## END ## AU: Search for updates [CallId = {58DE3B66-107F-4404-9093-6A9AA3214749}]
    2008-11-26 11:33:53:234 808 f64 AU #############
    2008-11-26 11:33:53:234 808 f64 AU Setting AU scheduled install time to 2008-11-26 11:00:00
    2008-11-26 11:33:55:406 808 1474 Driver DriverUtil marking {A3E176DC-915C-4DC8-AD56-AC413396ADE0}.100 e_detectionStateInstallable
    2008-11-26 11:33:55:406 808 1474 Driver Matched driver to device PCI\VEN_11AB&DEV_4320&SUBSYS_811A1043&REV_13
    2008-11-26 11:33:55:406 808 1474 Driver Status: 0x1802400, ProblemNumber: 0x00001c
    2008-11-26 11:33:55:406 808 1474 Driver Calculated driver attributes as 0x00000010
    2008-11-26 11:33:59:500 808 1474 Agent * Found 0 updates and 43 categories in search; evaluated appl. rules of 128 out of 1424 deployed entities
    2008-11-26 11:33:59:515 808 1474 Agent *********
    2008-11-26 11:33:59:515 808 1474 Agent ** END ** Agent: Finding updates [CallerId = MicrosoftUpdate]
    2008-11-26 11:33:59:515 808 1474 Agent *************
    2008-11-26 11:33:59:531 808 1474 Report REPORT EVENT: {495C94C0-193D-4EE9-8494-D35BF83AB03D} 2008-11-26 11:33:45:890+0100 1 147 101 {00000000-0000-0000-0000-000000000000} 0 0 MicrosoftUpdate Success Software Synchronization Windows Update Client successfully detected 5 updates.
    2008-11-26 11:33:59:547 1964 2e4 COMAPI >>-- RESUMED -- COMAPI: Search [ClientId = MicrosoftUpdate]
    2008-11-26 11:33:59:547 1964 2e4 COMAPI - Updates found = 0
    2008-11-26 11:33:59:547 1964 2e4 COMAPI ---------
    2008-11-26 11:33:59:547 1964 2e4 COMAPI -- END -- COMAPI: Search [ClientId = MicrosoftUpdate]
    2008-11-26 11:33:59:547 1964 2e4 COMAPI -------------
    2008-11-26 11:33:59:640 808 1474 Misc Validating signature for C:\WINDOWS\SoftwareDistribution\WuRedir\7971F918-A847-4430-9279-4A52D1EFE18D\wuredir.cab:
    2008-11-26 11:33:59:640 808 1474 Misc Microsoft signed: Yes
    2008-11-26 11:33:59:656 808 1474 Misc Validating signature for C:\WINDOWS\SoftwareDistribution\WuRedir\7971F918-A847-4430-9279-4A52D1EFE18D\wuredir.cab:
    2008-11-26 11:33:59:656 808 1474 Misc Microsoft signed: Yes
    2008-11-26 11:33:59:656 808 1474 Report Uploading 20 events using cached cookie, reporting URL = http://stats.update.microsoft.com/Re...ebService.asmx
    2008-11-26 11:34:00:094 808 1474 Report WARNING: Failed to upload events to the server with hr = c00ce509.
    2008-11-26 11:34:00:094 808 1474 PT WARNING: ReportEventBatch failure, error = 0x8024401B, soap client error = 10, soap error code = 0, HTTP status code = 407
    2008-11-26 11:34:00:094 808 1474 Report WARNING: Reporter failed to upload events with hr = 8024401b.

    Client windowsupdate.log

    2008-11-18 14:45:20:161 1316 4ec AU ## START ## AU: Search for updates
    2008-11-18 14:45:20:161 1316 4ec AU #########
    2008-11-18 14:45:20:161 1316 4ec AU <<## SUBMITTED ## AU: Search for updates [CallId = {C64AEE2A-658A-470E-B896-2135D7BD35AF}]
    2008-11-18 14:45:20:161 1316 7c0 Agent *************
    2008-11-18 14:45:20:161 1316 7c0 Agent ** START ** Agent: Finding updates [CallerId = AutomaticUpdates]
    2008-11-18 14:45:20:161 1316 7c0 Agent *********
    2008-11-18 14:45:20:161 1316 7c0 Agent * Online = Yes; Ignore download priority = No
    2008-11-18 14:45:20:161 1316 7c0 Agent * Criteria = "IsHidden=0 and IsInstalled=0 and DeploymentAction='Installation' and IsAssigned=1 or IsHidden=0 and IsPresent=1 and DeploymentAction='Uninstallation' and IsAssigned=1 or IsHidden=0 and IsInstalled=1 and DeploymentAction='Installation' and IsAssigned=1 and RebootRequired=1 or IsHidden=0 and IsInstalled=0 and DeploymentAction='Uninstallation' and IsAssigned=1 and RebootRequired=1"
    2008-11-18 14:45:20:161 1316 7c0 Agent * ServiceID = {9482F4B4-E343-43B6-B170-9A65BC822C77}
    2008-11-18 14:45:20:161 1316 7c0 Agent * Search Scope = {Machine}
    2008-11-18 14:45:20:208 1316 7c0 Misc Validating signature for C:\WINDOWS\SoftwareDistribution\SelfUpdate\Default \wuident.cab:
    2008-11-18 14:45:20:208 1316 7c0 Misc Microsoft signed: Yes
    2008-11-18 14:45:20:239 1316 7c0 Misc Validating signature for C:\WINDOWS\SoftwareDistribution\SelfUpdate\Default \wsus3setup.cab:
    2008-11-18 14:45:20:239 1316 7c0 Misc Microsoft signed: Yes
    2008-11-18 14:45:20:254 1316 7c0 Setup *********** Setup: Checking whether self-update is required ***********
    2008-11-18 14:45:20:254 1316 7c0 Setup * Inf file: C:\WINDOWS\SoftwareDistribution\SelfUpdate\Default \wsus3setup.inf
    2008-11-18 14:45:20:301 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\cdm.dll: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:301 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\wuapi.dll: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:317 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\wuapi.dll.mui: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:333 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\wuauclt.exe: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:348 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\wuaucpl.cpl: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:348 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\wuaucpl.cpl.mui: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:348 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\wuaueng.dll: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:364 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\wuaueng.dll.mui: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:379 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\wucltui.dll: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:395 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\wucltui.dll.mui: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:395 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\SoftwareDistribution\Setup\Ser viceStartup\wups.dll\7.2.6001.788\wups.dll: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:411 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\SoftwareDistribution\Setup\Ser viceStartup\wups2.dll\7.2.6001.788\wups2.dll: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:426 1316 7c0 Setup Update NOT required for C:\WINDOWS\system32\wuweb.dll: target version = 7.2.6001.788, required version = 7.1.6001.65
    2008-11-18 14:45:20:426 1316 7c0 Setup WARNING: Warning: Setup callback ReportProgress failed: 0x8007000d
    2008-11-18 14:45:20:426 1316 7c0 Setup * IsUpdateRequired = No
    2008-11-18 14:45:22:317 1316 7c0 Misc Validating signature for C:\WINDOWS\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv3wuredir.cab:
    2008-11-18 14:45:22:333 1316 7c0 Misc Microsoft signed: Yes
    2008-11-18 14:45:22:395 1316 7c0 Misc Validating signature for C:\WINDOWS\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv3wuredir.cab:
    2008-11-18 14:45:22:411 1316 7c0 Misc Microsoft signed: Yes
    2008-11-18 14:45:22:411 1316 7c0 PT +++++++++++ PT: Synchronizing server updates +++++++++++
    2008-11-18 14:45:22:411 1316 7c0 PT + ServiceId = {9482F4B4-E343-43B6-B170-9A65BC822C77}, Server URL = https://update.microsoft.com/v6/Clie...ce/client.asmx
    2008-11-18 14:45:25:833 1316 7c0 Misc Validating signature for C:\WINDOWS\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv3wuredir.cab:
    2008-11-18 14:45:25:833 1316 7c0 Misc Microsoft signed: Yes
    2008-11-18 14:45:25:895 1316 7c0 Misc Validating signature for C:\WINDOWS\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv3wuredir.cab:
    2008-11-18 14:45:25:911 1316 7c0 Misc Microsoft signed: Yes
    2008-11-18 14:45:25:911 1316 7c0 PT +++++++++++ PT: Synchronizing extended update info +++++++++++
    2008-11-18 14:45:25:911 1316 7c0 PT + ServiceId = {9482F4B4-E343-43B6-B170-9A65BC822C77}, Server URL = https://update.microsoft.com/v6/Clie...ce/client.asmx
    2008-11-18 14:45:26:255 1316 7c0 Agent * Found 0 updates and 13 categories in search; evaluated appl. rules of 249 out of 443 deployed entities
    2008-11-18 14:45:26:302 1316 7c0 Agent *********
    2008-11-18 14:45:26:302 1316 7c0 Agent ** END ** Agent: Finding updates [CallerId = AutomaticUpdates]
    2008-11-18 14:45:26:302 1316 7c0 Agent *************
    2008-11-18 14:45:26:302 1316 f4c AU >>## RESUMED ## AU: Search for updates [CallId = {C64AEE2A-658A-470E-B896-2135D7BD35AF}]
    2008-11-18 14:45:26:302 1316 f4c AU # 0 updates detected
    2008-11-18 14:45:26:317 1316 7c0 Inv #############
    2008-11-18 14:45:26:317 1316 7c0 Inv ## START ## Inv: Inventory Collection
    2008-11-18 14:45:26:317 1316 7c0 Inv #########
    2008-11-18 14:45:26:317 1316 7c0 Inv # Talking to WSUS server = https://testsce10.x.hu:8531
    2008-11-18 14:45:26:317 1316 f4c AU #########
    2008-11-18 14:45:26:317 1316 f4c AU ## END ## AU: Search for updates [CallId = {C64AEE2A-658A-470E-B896-2135D7BD35AF}]
    2008-11-18 14:45:26:317 1316 f4c AU #############
    2008-11-18 14:45:26:317 1316 f4c AU AU setting next detection timeout to 2008-11-19 11:26:55
    2008-11-18 14:45:26:317 1316 f4c AU Setting AU scheduled install time to 2008-11-19 02:00:00
    2008-11-18 14:45:26:333 1316 7c0 Inv # Downloading Rule file from = https://testsce10.x.hu:8531/Inventor...ntoryRules.cab
    2008-11-18 14:45:26:364 1316 7c0 Misc Validating signature for C:\WINDOWS\SoftwareDistribution\Inventory\Inventor yRule\InventoryRules.cab:
    2008-11-18 14:45:26:364 1316 7c0 Misc Microsoft signed: Yes
    2008-11-18 14:45:26:380 1316 7c0 Inv # Inventory Rule id = 8226C3A1-70D4-4848-B441-1555AC820A23, version = 1.0
    2008-11-18 14:45:28:677 1316 7c0 PT WARNING: PTError: 0x8024001a
    2008-11-18 14:45:28:677 1316 7c0 PT WARNING: PTError: 0x8024001a
    2008-11-18 14:45:28:677 1316 7c0 PT WARNING: Initialization failed for Protocol Talker Context: 0x8024001a
    2008-11-18 14:45:28:677 1316 7c0 Inv WARNING: Failed to get cached cookie with 8024001a
    2008-11-18 14:45:28:677 1316 7c0 PT WARNING: PTError: 0x8024001a
    2008-11-18 14:45:28:677 1316 7c0 PT WARNING: PTError: 0x8024001a
    2008-11-18 14:45:28:677 1316 7c0 PT WARNING: Initialization failed for Protocol Talker Context: 0x8024001a
    2008-11-18 14:45:28:677 1316 7c0 Inv WARNING: Failed to get cached cookie with 8024001a
    2008-11-18 14:45:28:677 1316 7c0 PT WARNING: PTError: 0x8024001a
    2008-11-18 14:45:28:677 1316 7c0 PT WARNING: PTError: 0x8024001a
    2008-11-18 14:45:28:677 1316 7c0 PT WARNING: Initialization failed for Protocol Talker Context: 0x8024001a
    2008-11-18 14:45:28:677 1316 7c0 Inv WARNING: Failed to get cached cookie with 8024001a
    2008-11-18 14:45:28:677 1316 7c0 Inv WARNING: Inventory: Failed to upload inventory result with error 0x8024001a
    2008-11-18 14:45:28:677 1316 7c0 Inv # WARNING: Exit code = 0x8024001A
    2008-11-18 14:45:28:677 1316 7c0 Inv #########
    2008-11-18 14:45:28:677 1316 7c0 Inv ## END ## Inv: Inventory Collection
    2008-11-18 14:45:28:677 1316 7c0 Inv #############
    2008-11-18 14:45:28:677 1316 7c0 Inv WARNING: Inventory: Failed to process work item 0x8024001a
    2008-11-18 14:45:31:302 1316 7c0 Report REPORT EVENT: {B50ED9D8-EA8F-45DD-937A-D4D93B5F3349} 2008-11-18 14:45:26:302+0100 1 147 101 {00000000-0000-0000-0000-000000000000} 0 0 AutomaticUpdates Success Software Synchronization Windows Update Client successfully detected 0 updates.
    2008-11-18 14:45:31:302 1316 7c0 Report REPORT EVENT: {875B62CB-E50D-4C72-8656-0E1D0776069E} 2008-11-18 14:45:28:677+0100 1 124 104 {00000000-0000-0000-0000-000000000000} 0 8024001a InventoryEngine Failure Inventory Result Upload Inventory: Faied to upload result data
    2008-11-18 17:48:04:051 1316 4ec Agent *********** Agent: Refreshing global settings cache ***********
    2008-11-18 17:48:04:051 1316 4ec Agent * WSUS server: https://testsce10.x.hu:8531 (Changed)
    2008-11-18 17:48:04:051 1316 4ec Agent * WSUS status server: https://testsce10.x.hu:8531 (Changed)
    2008-11-18 17:48:04:051 1316 4ec Agent * Target group: (Unassigned Computers) (Unchanged)
    2008-11-18 17:48:04:051 1316 4ec Agent * Windows Update access disabled: No (Unchanged)
    2008-11-18 17:48:04:051 1316 4ec AU AU received policy change subscription event
    2008-11-18 17:48:04:051 1316 4ec AU Sus server changed through policy.
    2008-11-18 17:48:04:082 1316 4ec AU AU Refresh required....
    2008-11-18 17:48:04:082 1316 4ec AU AU setting next detection timeout to 2008-11-18 16:48:04
    2008-11-18 17:48:09:988 1316 4ec AU Triggering Online detection (non-interactive)


All Replies

  • Wednesday, December 03, 2008 10:12 AM
    Moderator
     
     Answered

     

    Hi Matt,

     

    For this problem, please check the following steps:

     

    1. Run rsop.msc on clients to check whether the GPOs: SCE Managed Computers Group Policy& System Center Essentials All Computers Policy had been applied correctly on clients.

     

    Check that the client is configured to use the SCE server for Windows Updates.  The following registry entries should be set to https://<SCEServerFQDN>:8531

     

    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\WUServer
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\WUStatusServer


    2. Run wuauclt /detectnow and reportnow on the SCE agents.


    3. Check whether the required ports for communication between clients and server had been opened, or disable the firewall as a test.

     

    4. Ensure you can browser  https://<SCEServerFQDN>:8531/simpleauthwebservice/simpleauth.asmx and  https://<SCEServerFQDN>:8531/selfupdate/wuident.cab correctly.


    4. Is there a proxy server in your scenario? If not, please ensure there is no proxy setting in IE and run proxycfg -d command on problematic SCE clients.

     

     

    If this problem still remains, please help us collect needed information for further troubleshooting:


    1. On a problematic client, stop the Automatic Update service via services.msc.


    2. Rename the windowsupdate.log (under %windir%) to windowsupdate1.log, and then start the Automatic Update service.


    3. Run “wuauclt /detectnow” command.


    4. Wait for 10 minutes and then run “wuauclt /reportnow” command.


    5. We will get a new %windir%\windowsupdate.log file.


    Please send the windowsupdate.log and windowsupdate1.log to scedata@microsoft.com for further research. Note copy following in email body:


    WinHttpDownloadFileToMemory
    http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=4195440&SiteID=17

    For Yog Li - MSFT

     

    Thanks.

  • Friday, December 19, 2008 5:14 PM
     
     
    Hey, Any update? I am running a live system with SCE and are seeing the exact same issues as Matt, his WindowsUpdate.log looks almost identical (except of server names and such).
    Just ME
  • Tuesday, November 08, 2011 7:02 PM
     
     

    Ran into this problem, had rebuilt a client from the ground up that was a member of a domain, used the same computer name.  Neglected to delete the AD object, rejoined to the domain, got the error.

    Fix was to move the node out to a workgroup, delete the AD object, wait for that to cycle through the DC's, then rejoin to the domain, update policies.

  • Monday, November 28, 2011 4:39 PM
     
     
    XP machines seem to need to go to the windows update site, install the new software to receive updates, then they work.  Client diag still throws an error but updates proceed.