Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Windows Server 2016 / “Downloading updates 0%” Issue on Windows Server 2016 and Windows 10

November 16, 2018 Windows 10Windows Server 2016

“Downloading updates 0%” Issue on Windows Server 2016 and Windows 10

I have come across an interesting “feature” or “bug” in Windows Update service on Windows Server 2016 (Windows 10 RTM). If you’re not using an internal WSUS server and your OS must be updated directly from Microsoft Update servers in the Internet, when you downloading the updates in Windows Server 2016 via a proxy server, the download process stucks at 0% (Downloading Updates 0%).

Windows Server 2016 - Downloading Updates 0%

What is interesting, the Windows Update client has been able to send/download the updates metadata (the list of necessary updates has been formed successfully), but none of them could be downloaded.
Let’s create and open the WindowsUpdate.log using the Get-WindowsUpdateLog cmdlet.

2018/11/11 12:32:47.8312332 123 3542 DownloadManager BITS job initialized: JobId = {E3BB42A1C-42B4-221B-1320-8AB433CE1965E}
2018/11/11 12:32:47.8436054 123 3542 DownloadManager Downloading from http://download.windowsupdate.com/c/msdownload/update/software/defu/2017/09/nis_engine_1af0e4b80bf4028f8dac56ebf186b392e4e72486.exe to C:\Windows\SoftwareDistribution\Download\f71ddf93ec2d087c819cf75c55ddfda2\1af0e4b80bf4028f8dac56ebf186b392e4e72486 (full file)
2018/11/11 12:32:47.8452605 123 3542 DownloadManager New download job {E3BB42A1C-42B4-221B-1320-8AB433CE1965E} for UpdateId F608EDA4-2E84-433A-A8C9-8117411F91A8.200
2018/11/11 12:32:47.8545291 123 3542 DownloadManager Download job E3BB42A1C-42B4-221B-1320-8AB433CE1965E resumed.
2018/11/11 12:32:47.8734449 123 3542 DownloadManager Failed to connect to the DO service; (hr = 80040154)
2018/11/11 12:32:47.8734462 123 3542 DownloadManager GetDOManager() failed, hr=80246008, hrExtended=80040154
2018/11/11 12:32:47.8734472 123 3542 DownloadManager Failed creating DO job with hr 80246008
2018/11/11 12:32:47.8772521 123 3542 DownloadManager DO download failed with error 80246008[Extended: 80040154], falling back to BITS and retrying with new Download Job.

As you can see, BITS cannot download the files with the error 80246008 (SUS_E_DM_FAILTOCONNECTTOBITS – see the complete list of Windows update error codes).

As it turned out, the proxy server settings for the Internet Explorer in Windows Server 2016 RTM (10.0.14393) doesn’t work in the same way as in previous Windows versions. In order the Windows Update client can access the Internet through a proxy, you must force set the system proxy for winhttp.

ie proxy setting in windows server 2016

Display the current proxy server settings for WinHTTP:

netsh winhttp show proxy

Current WinHTTP proxy settings:

Direct access (no proxy server).

Current WinHTTP proxy settings:Direct access (no proxy server

As you can see, the proxy settings for WinHTTP are not set. A proxy was configured in Internet Explorer on the User level but not in System level (WinHTTP). This configuration causes the connections to Windows Update to fail.

You can set the system proxy parameters for WinHTTP as follows:

netsh winhttp set proxy proxy-server="192.168.100.24:3128" bypass-list="*.woshub.com"

netsh winhttp set proxy proxy-server

Or like this, by importing the settings from IE (proxy settings in the Internet Explorer must be set manually or configured using GPO in advance):

netsh winhttp import proxy source=ie

After changing the proxy settings, restart the Windows Update service:

Restart-service wuauserv

Restart-service wuauserv (powershell)

After a proxy for WinHTTP had been specified, Windows Server 2016 started to download updates from Microsoft Update servers.

The same problem is typical to RTM version of Windows 10 (RTM version of the Windows Update Agent – 10.0.14393.0).

Note. If you manually download and install the latest cumulative update from Microsoft Update Catalog (released after November, 2016), the updates will be download and installed normally even if you don’t set WinHTTP proxy. According to Microsoft information, this bug was fixed in Windows Update agent 10.0.14393.187 and higher.

Also, don’t forget that you won’t be able to get updates through proxy server that requires authentication, since Windows Update client doesn’t support proxy authentication (unlike PowerShell). In order Windows Update to work correctly, you must allow anonymous access to Microsoft Update servers on your proxy server. The list of URLs is given below:

  • *.microsoft.com
  • microsoft.com
  • *.windowsupdate.com
  • windowsupdate.com
  • *.trafficmanager.net
  • trafficmanager.net

9 comments
2
Facebook Twitter Google + Pinterest
previous post
Fix: Secure Connection Failed Error in Mozilla Firefox
next post
Setup Error: Windows Cannot Find Microsoft Software License Terms

Related Reading

How to Troubleshoot, Repair and Rebuild the WMI...

March 2, 2021

How to Sign a PowerShell Script (PS1) with...

February 25, 2021

How to Shadow (Remote Control) a User’s RDP...

February 22, 2021

Configuring PowerShell Script Execution Policy

February 18, 2021

Configuring Proxy Settings on Windows Using Group Policy...

February 17, 2021

9 comments

[Fixed] Windows Update Stuck at 0% on Server 2016/2019 or Other Versions - Sysprobs - Not Another Tech Blog April 2, 2019 - 6:35 pm

[…] For more information about fixing the Windows update issue related to proxy server, you can refer to this guide. […]

Reply
Henock May 17, 2019 - 2:22 pm

Excellent article. it helped solve the same bug.

Reply
Nguyen Tuan Anh July 30, 2019 - 6:47 am

thanks so much, fisrt time i only think the problem come from my proxy policy.
Have a good time to you!

Reply
smokingdragon August 13, 2019 - 8:46 am

cheers mate! Now patching!

Reply
AdminWSUS August 29, 2019 - 12:55 pm

For us the solution is very strange!
We have a WSUS server on the AD domain.
winhttp proxy setting is : direct acces.
No proxy in IE
The updates failed to install (each time even after reboot)
importing empty parameters from IE works!
netsh winhttp import proxy source=ie (with empty settings!!!)
Now, updates are downloading correctly and installed.
Crazy MS !!

Reply
Jules September 18, 2019 - 2:56 am

Fabulous Fix, Cheers, way to go MS, Blah

Reply
Bohus October 5, 2019 - 11:05 am

Excellent, you save my time.

Reply
amenallah November 6, 2019 - 11:06 am

Very very good, nice job mate

Reply
Simran April 9, 2020 - 9:26 pm

Awesome its working now

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • How to Troubleshoot, Repair and Rebuild the WMI Repository?

    March 2, 2021
  • Accessing USB Flash Drive from VMWare ESXi

    February 26, 2021
  • How to Sign a PowerShell Script (PS1) with a Code Signing Certificate?

    February 25, 2021
  • Change the Default Port Number (TCP/1433) for a MS SQL Server Instance

    February 24, 2021
  • How to Shadow (Remote Control) a User’s RDP session on RDS Windows Server 2016/2019?

    February 22, 2021
  • Configuring PowerShell Script Execution Policy

    February 18, 2021
  • Configuring Proxy Settings on Windows Using Group Policy Preferences

    February 17, 2021
  • Updating Group Policy Settings on Windows Domain Computers

    February 16, 2021
  • Managing Administrative Shares (Admin$, IPC$, C$, D$) in Windows 10

    February 11, 2021
  • Packet Monitor (PktMon) – Built-in Packet Sniffer in Windows 10

    February 10, 2021

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Booting Windows 7 / 10 from GPT Disk on BIOS (non-UEFI) systems
  • How to Run Program without Admin Privileges and to Bypass UAC Prompt?
  • Removable USB Flash Drive as Local HDD in Windows 10 / 7
  • How to Create a Wi-Fi Hotspot on your Windows 10 PC
  • Error Code: 0x80070035 “The Network Path was not found” after Windows 10 Update
  • How to increase KMS current count (count is insufficient)
  • How to Configure Google Chrome Using Group Policy ADMX Templates?
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top