Windows10: Windows automatic update and Store through a proxy are not working - here is a workaround

There is a bug within the update  and the Store function of Windows 10 (workstation as well as server)

Windows update/Store are not using the system proxy, and they are not applying the proxy to the jobs started with BITS.

For all of the jobs sent to BITS:

If a system proxy is set, get the proxy setting and path it with the job

Do not use the inetcpl.cpl setup proxy from the service account,

use the one setup by ‘netsh winhttp set proxy’

The current workaround:

  • Have psexec.exe ready from www.sysinternals.com

  • Start an elevated shell
    Execute: netsh winhttp set proxy <server>:<port>
    Execute: start c:\temp\psexec.exe –s –i cmd.exe
    Execute (optional): bitsadmin /monitor /allusers
  • In the service cmd (the one started with psexec.exe)
    execute: inetcpl.cpl ->connections -> lan settings -> proxy server
       setup the proxy to be used
    execute: c:\temp\setBitsProxy.bat (see below)

  • Open the windows  update page and start the update

Content of setBitsProxy.bat:

@echo off

rem NOTE: modify the next line to reflect your proxy settings

set downloadProxy=<server>:<port>

echo started %0
echo using proxy %downloadproxy%

:start

for /f "tokens=1" %%a in ('bitsadmin /list /allusers ^|findstr {') do set guid=%%a&call :changeProxy

timeout 10 >NUL: 2>&1

goto :start

:changeProxy

bitsadmin /GETPROXYLIST %guid% | findstr -i %downloadProxy% >nul: 2>&1

set lastError=%errorLevel%

if not {%lastError%} == {0} (

    echo ###################################################################
    echo %date% %time% changing settings for %guid%
    bitsadmin /listfiles %guid% | findstr :\ >> %~dp0bitsFileList.txt
    bitsadmin /listfiles %guid% | findstr :\
    bitsadmin /getproxyUsage %guid% |findstr  -v BITS | findstr  -v Microsoft
    bitsadmin /setProxySettings %guid% override %downloadProxy% null >NUL: 2>&1
    echo.

)

bitsadmin /resume %guid%  >NUL: 2>&1

goto :EOF

###########end of file setBitsProxy.bat

I'm able to update now, with the exception of

bitsadmin /list /allusers reports:

{D409F355-948C-49C6-990F-B068F7534399} 'WU Client Download' TRANSIENT_ERROR 1 / 2 2203768 / 18446744071900934112

having a closer look to the job using bitsadmin /listfiles {D409F355-948C-49C6-990F-B068F7534399}

gave:

2203768 / 2203768 WORKING http://bg.v4.sh.dl.ws.microsoft.com/dl/content/d/updt/2015/03/windowsstoresetupbox_230aa8d32cb7e9c42119858cff2ebcb09fec4c7d.exe?P1=1427096993&P2=101&P3=1&P4=2%2bXh31V4M5nJFlU4kUD7iqBXwUY%3d -> C:\Windows\SoftwareDistribution\Download\1495267acca531c514cd4e7da071bb5a\WindowsStoreSetupBox.exe

0 / 18446744071898730344 WORKING http://bg.v4.sh.dl.ws.microsoft.com/dl/content/d/updt/2015/03/10041.0.150313-1821.fbl_impressive_clientpro_ret_x64fre_en-us_8a78ed7270f949769b28e4f20600b25c7144936d.esd?P1=1427107155&P2=101&P3=1&P4=DKUfRiaNIJT%2bsd6EmWG8mTMTY%2fE%3d -> C:\Windows\SoftwareDistribution\Download\1495267acca531c514cd4e7da071bb5a\10041.0.150313-1821.fbl_impressive_CLIENTPRO_RET_x64fre_en-us.esd

the first of the 2 files is downloaded correctly, but the 2nd stuck.

this is a crazy file length which I received from the update server - approx. 18.5 million TB - my disk is too small for this

If I download the file using internet explorer - it tells me 2.31 GB size, exactly  2,484,146,024 bytes 

copied the downloaded file to the destination displayed by bitsadmin C:\Windows\SoftwareDistribution\Download\1495267acca531c514cd4e7da071bb5a\10041.0.150313-1821.fbl_impressive_CLIENTPRO_RET_x64fre_en-us.esd

and set the job to finished using

bitsadmin /complete {D409F355-948C-49C6-990F-B068F7534399}

but installation does not start

after a reboot the windows update page showed me that an update is ready to be installed

pressed the update button - >installing is starting and worked

there are a lot of steps to be done, but finally it worked

Hopefully Microsoft will fix this soon, and this will not be a problem in the final release, otherwise Windows 10 cannot be used in corporate environments having a proxy infrastructure,

or within a test network which is connected to the public using a chain of proxy servers.

have fun

andy

31-Mar-2015: update to build 'fbl_impressive 10049 Professional' has to be done manually
  get the source and destination of the BITS job having an incredible length

  download the file using internet explorer

  copy the downloaded file to the destination specified in bitsadmin /listfiles

  set the fjob to complete using bitsadmin /complete <guid>

  reboot the machine

  start update again, which install the already downloaded fixes

01-Apr-2015: Build 10049 - WAU and store are still not supporting proxy usage

   the BITS jobs are still setup using AutoDetect instead of using the proxy  settings

 

Discussion Info


Last updated May 29, 2020 Views 27,847 Applies to:

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

I tried the above workaround,  but when executing setBitsProxy.bat I just get empty lines every few seconds with no end. Metro apps, verifying MS account, Cortana, Spartan, etc. don't work.

Hi Brian,

the batch is monitoring the jobs setup by windows update.

while running windows update jobs are place for BITS

you might monitor the jobs using: bitsadmin /monitor /allusers

the batch iterates over the jobs ans check for the proxy settings.

if there is no proxy setup the proxy you specified will be set using bitsadmin /setProxysettings

for the empty line delete the echo. 2 lines after :start

andy

AnDi

Hi Andreas, we addressed a number of proxy issues with fixes that should be in build 10049, but it looks like you're still unfortunately seeing an issue on that build.

Can you please help us investigate the issue by sharing the log files from these three paths?

%windir%\logs\windowsupdate

%programdata%\USOPrivate

%programdata%\USOShared

Hi Jordan,

please see files in

https://onedrive.live.com/?cid=12495cf0798d6554&id=12495CF0798D6554%21380&ithint=folder,txt&authkey=!AA-ZngGOeN0OhtM

(NOTE: share no longer available)

please drop me a note when to unshared the files again.

problems are still there for:

- adding NETFX3 (sql 2012 Installation - maybe dism.exe)

- store

- office font download

standard Windows update seemed to work now

  after installation of SQL, WAU updated some components (VCRedist,...)

     without updating the proxy information

please keep me informed about progress

regards

andy

AnDi

Thanks AnDi,

this has been an issue that has blocked any Windows Updates since the 9926 build - thanks to your post this is finally resolved. 

I had also poked netsh setting the proxy server as I thought it may have been a BITS problem. 

Many thanks for the comprehensive solution. 

Stuart

Hi Jordan,

please see files in

https://onedrive.live.com/?cid=12495cf0798d6554&id=12495CF0798D6554%21380&ithint=folder,txt&authkey=!AA-ZngGOeN0OhtM

please drop me a note when to unshared the files again.

problems are still there for:

- adding NETFX3 (sql 2012 Installation - maybe dism.exe)

- store

- office font download

standard Windows update seemed to work now

  after installation of SQL, WAU updated some components (VCRedist,...)

     without updating the proxy information

please keep me informed about progress

regards

andy

Thank you. I've opened a bug internally on the team to investigate, and have the files copied to it. You can unshare your files.

I'll report back to this thread with any updates.

Hi Jordan,

please forward to DEVs

just a small update on SQL setup, which is internally using dism:

the following standalone command is showing up the same problem:

dism.exe /online /enable-Feature /all /featurename:NetFx3

 

a job is scheduled within BITS without a proxy setting:

 

BITS job data:

{921C9E43-B3A7-448A-B2EF-C3538DB13132} 'WU Client Download' CONNECTING 0 / 1 0 / UNKNOWN

 

0 / UNKNOWN WORKING http://fg.v4.download.windowsupdate.com/c/msdownload/update/software/updt/2015/01/microsoft-windows-netfx3-ondemand-package_e209b30ab22cdc321805723e80e2b8c3623b7d8b.cab -> C:\WINDOWS\SoftwareDistribution\Download\2a3897739001e950527817f6e49de1b6\Microsoft-Windows-NetFx3-OnDemand-Package.cab

AUTODETECT

 

if the proxy information is set using 'bitsadmin /setProxySettings ...' the installation of NetFx3 is working correctly.

 

seemed that dism.exe has to take care about the system proxy setting setup by

netsh winhttp set proxy

 

please take care not to use the proxy settings setup by inetcpl.cpl for the system account!

 

regards

andy

 

p.s.

output of: dism.exe /online /enable-Feature /all /featurename:NetFx3

Deployment Image Servicing and Management tool
Version: 10.0.10049.0

Image Version: 10.0.10049.0

Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

AnDi

Jordan,

some add ons:

the 2 fixes released for 10049 from 08-Apr-2015 are still not having a proxy set

###################################################################
Thu 04/09/2015  7:40:25.59 changing settings for {49CBF3E8-F266-453C-887C-2F7914474F57}
0 / UNKNOWN WORKING http://au.v4.download.windowsupdate.com/d/msdownload/update/software/crup/2015/04/windows10.0-kb3053902-x64-express_397d19b2d6fa58f65ed2c65a0ffd656b6ee5f4be.cab -> C:\WINDOWS\SoftwareDistribution\Download\cb57d9755e597e9b15acb061e0c6ff15\windows10.0-kb3053902-x64-express.cab

AUTODETECT
Press any key to continue . . .

###################################################################
Thu 04/09/2015  7:41:04.59 changing settings for {07CA3003-3C18-4319-AB6C-CD531BC75D60}
0 / UNKNOWN WORKING http://au.v4.download.windowsupdate.com/c/msdownload/update/software/crup/2015/04/windows10.0-kb3053898-x64-express_4695e9390ccf4fe094bb3883e8771cbf11192d99.cab -> C:\WINDOWS\SoftwareDistribution\Download\8d67c07929d83f5e30922a8c3b04621b\windows10.0-kb3053898-x64-express.cab

AUTODETECT
Press any key to continue . . .

###################################################################
Thu 04/09/2015  7:41:32.23 changing settings for {0305AC2F-9758-4CCC-A7C0-A65EA87075B2}
0 / 92400 WORKING http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/919cc35d-e278-42a8-8168-9ad544b317bc?P1=1428540228&P2=301&P3=2&P4=aaJ%2b5io3YN9%2bvroLdldPxWdOWSU6pPLhYuki01u0BkI%3d -> C:\WINDOWS\SoftwareDistribution\Download\05360524d43627a93983e6ca49925524\f147d2dc036225ff65af3
c8b7dadd59b54fd887d_1

AUTODETECT
Press any key to continue . . .

###################################################################
Thu 04/09/2015  7:45:10.17 changing settings for {524D15B1-4017-4CB8-8A4E-3AD0CF225A83}
0 / 11443774 WORKING http://au.v4.download.windowsupdate.com/c/msdownload/update/software/crup/2015/04/windows10.0-kb3053898-x64_62843871b63760a1a4f4d4108669c62153a070df.psf -> C:\WINDOWS\SoftwareDistribution\Download\8d67c07929d83f5e30922a8c3b04621b\62843871b63760a1a4f4d4108669c62153a070df-1

AUTODETECT
Press any key to continue . . .

###################################################################
Thu 04/09/2015  7:45:50.51 changing settings for {FC12DC85-617D-41AA-B2A2-DCFE403F06F3}
0 / 5272735 WORKING http://au.v4.download.windowsupdate.com/d/msdownload/update/software/crup/2015/04/windows10.0-kb3053902-x64_1510573c186b874dc1bd8c479b82471fb3ddab89.psf -> C:\WINDOWS\SoftwareDistribution\Download\cb57d9755e597e9b15acb061e0c6ff15\1510573c186b874dc1bd8c479b82471fb3ddab89-1

AUTODETECT
Press any key to continue . . .

###################################################################
Thu 04/09/2015  7:46:48.53 changing settings for {AA96E497-E8CE-4BB2-8541-D806D89C537E}
0 / 98304 WORKING http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/919cc35d-e278-42a8-8168-9ad544b317bc?P1=1428559381&P2=301&P3=2&P4=GPBU%2fV129PnzxCxwr8CDuNZx1MdlExz9HDaqTlT6%2bGs%3d -> C:\WINDOWS\SoftwareDistribution\Download\05360524d43627a93983e6ca49925524\f147d2dc036225ff65af3
c8b7dadd59b54fd887d_2

AUTODETECT

###################################################################
Thu 04/09/2015  7:47:18.14 changing settings for {4C28F9C6-B9A5-4480-A670-EE137202B61D}
0 / 7864320 WORKING http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/919cc35d-e278-42a8-8168-9ad544b317bc?P1=1428559381&P2=301&P3=2&P4=GPBU%2fV129PnzxCxwr8CDuNZx1MdlExz9HDaqTlT6%2bGs%3d -> C:\WINDOWS\SoftwareDistribution\Download\05360524d43627a93983e6ca49925524\f147d2dc036225ff65a
f3c8b7dadd59b54fd887d_3

AUTODETECT
Press any key to continue . . .

manually setting the proxy makes the download work - installation of the fixes worked without a problem.

Therefore the information from beginning this week ("we addressed a number of proxy issues with fixes that should be in build 10049") is not covering all details.

regards

andy

AnDi

Hi Jordan,

the updates from last weekend (17-19 Apr) are not triggering a BITS transfer

namely:

Security Update for Windows Technical Preview March Update for x64-based systems (KB3057424).

Security Update for Windows Technical Preview March Update for x64-based systems (KB3058109).

current OS level: 10049

seemed that there is no more update possible

if there are no BITS jobs entered, the Proxy information cannot be set manually any longer.

The 'Downloading updates' indicates 0% over hours without network transfer.

Even a reboot is not fixing the issue.

we are stuck in testing

also eventvwr -> Applicationas and Services Logs -> Microsoft -> Windows -> Bits-Client -> Operational

has no corresponding entry (preferable event ID 59 for newly created jobs).

which way is used/needed to download actual updates starting with build 10049?

the only (multiple) entries in eventvwr for BITS for the last 3 days are:

BITS started the Push Notification Platform Job: 1 transfer job that is associated with the http://finance.services.appex.bing.com/Market.svc/ResolveAppTileChartV2?indexName=126.10.!DJI.126.$INDU&tileType=1&ts=4/20/2015%208:15:00%20AM?ms-scale=100&ms-contrast=standard&ms-lang=en-us

regards

andy

p.s.

after reboot and having 'Windows update' open for 30 minutes, the BITS jobs were queued, having 'AUTODETECT' proxy information. Had to set the proxy information manually and update succeeded.

Why does it take 30 minutes to queue the BITS jobs. Windows update window has already displayed the missing fixes and the download progress bar stucks at 0%?

AnDi

Hello Jordan,

same effect on my VM running build 10049.  In Windows Update;

There were problems installing some updates, but we'll try again later. If you keep seeing this and want to search the web or contact support for information, this may help:

Windows Technical Preview March Update for x64-based systems (KB3049508) - Error 0x80072efd

Security Update for Windows Technical Preview March Update for x64-based systems (KB3057424) - Error 0x80072efd

Security Update for Windows Technical Preview March Update for x64-based systems (KB3058109) - Error 0x80072efd

Windows Technical Preview March Update for x64-based systems (KB3053898) - Error 0x80072ee2

Windows Technical Preview March Update for x64-based systems (KB3053902) - Error 0x80072efd

Tried using the default Windows Update settings and using Andy's manual setting of the proxy server.  Neither now works so no updates are possible. 

As per Andy's note the Store (Beta) update fails.  Also trying to repair the Mail, Calendar and People apps in the taskbar also fail whilst trying to repair the installation via the Store App.  Error code 0x80073cff 

Think we'll need to wait until the next build is available as an .iso before we can resume our testing. 

Best regards,

Stuart

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.