有關WSUS客戶端Error 0x80072efd

SYMPTOMS
You see the following errors in "%Windir%\WindowsUpdate.log"
WARNING: Send failed with hr = 80072efd.
WARNING: SendRequest failed with hr = 80072efd. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
WARNING: WinHttp: SendRequestUsingProxy failed for <
[url]http://wsusserver:8530/selfupdate/wuident.cab[/url] >. error 0x80072efd
WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072efd
WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072efd
WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072efd
WARNING: DownloadFileInternal failed for
[url]http://wsusserver:8530/selfupdate/wuident.cab[/url] : error 0x80072efd
FATAL: IsUpdateRequired failed with error 0x80072efd
WARNING: SelfUpdate: Default Service: IsUpdateRequired failed: 0x80072efd
WARNING: SelfUpdate: Default Service: IsUpdateRequired failed, error = 0x80072EFD
  * WARNING: Skipping scan, self-update check returned 0x80072EFD
  * WARNING: Exit code = 0x80072EFD
WARNING: WU client failed Searching for update with error 0x80072efd
DESCRIPTION
Error 0x80072efd translates to ERROR_INTERNET_CANNOT_CONNECT which means 'The attempt to connect to the server failed'.
CAUSE
WUA uses WinHTTP proxy settings to access WSUS Server. WinHTTP proxy settings are separate from the proxy settings in Microsoft® Internet Explorer. If you are using Proxy server to access internet and proxy settings are configured for IE and at the same time, If WinHTTP proxy settings are set to null, then sometimes WUA fails with the errors as seen above.
Use ClientDiag Tool which will check for WinHTTP local machine Proxy settings and User IE Proxy settings. In the below sample, WinHTTP local machine Proxy settings is set to Direct Connection whereas User IE Proxy settings is set to a local proxy server.
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
                proxy:8080
                User IE ProxyByPass
                10.*;;<local>
                User IE AutoConfig URL Proxy . . . . . . . . .  NONE
                User IE AutoDetect
                AutoDetect not in use
In such case, send request will fail with 80072efd as it is set to null proxy (no proxy).
WORKAROUND
To troubleshoot this error, configure WinHTTP local machine Proxy settings to use User IE Proxy settings using the command 'proxycfg.exe -u' (This command imports the Internet Explorer proxy settings of the current user).
Run 'proxycfg.exe -u' command followed by ClientDiag. The sample below shows Winhttp local machine Proxy Settings are now cloned to User IE Proxy settings.
Checking Proxy Configuration
        Checking for winhttp local machine Proxy settings . . . PASS
                Winhttp local machine access type
                        <Using Proxy>
                Winhttp local machine Proxy
                proxy:8080
                Winhttp local machine ProxyBypass
                10.*;;<local>
        Checking User IE Proxy settings . . . . . . . . . . . . PASS
                User IE Proxy
                proxy:8080
                User IE ProxyByPass
                10.*;;<local>
                User IE AutoConfig URL Proxy . . . . . . . . .  NONE
                User IE AutoDetect
                AutoDetect not in use
Note:
  • The administrator who runs proxycfg.exe must have local administrator privileges so that proxycfg.exe can update the registry of the local computer.
  • WinHTTP proxy settings are per-machine, not per-user.
Now, Restart Automatic Updates Service ( MUST) and force an update detection using the command 'wuauclt.exe /detectnow' and the error should disappear and WUA will start downloading the approved updates.
MORE INFORMATION
Published Monday, May 08, 2006 5:05 PM by Mohammed Athif Khaleel
Filed under: MVP's Blogs