Install-WindowsUpdate does not get Updates from MS

Nov 27, 2013 at 6:49 AM
I have Win7 box with chocolatey and boxstarter installed if I exceute
 Install-WindowsUpdate -getUpdatesFromMS
the result is "Boxstarter: There is no update applicable to this machine"

If I check then with windows update it tells me that I have one important update to install - in this case .Net Framework 4.5.1

If I do the same thing on another machine (W2k3 R2) it works.

would be great to get some feedback
Coordinator
Nov 27, 2013 at 7:57 AM
Hmm. Have you checked to see if maybe that update previously installed? I just ran it on a fresh win7 vm and i do see the update from Install-WindowsUpdate.

You can tell if you have 4.5.1 by running:
test-path "hklm:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v4.5.1"
Nov 27, 2013 at 4:20 PM
thanks for the feedback, and it's not installed from a previous update
test-path "hklm:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v4.5.1" => False
Coordinator
Nov 27, 2013 at 8:51 PM
Ok. I'll look further and may have more questions for you. Can you tell me what version of boxstarter you are using?

Thanks!

Sent from my Windows Phone

Nov 27, 2013 at 9:33 PM
sure, here you go
cver boxstarter


found         : 2.0.25
name          : boxstarter
latestCompare : 000000000002.000000000000.000000000025
verMessage    : Latest version installed
latest        : 2.0.25
foundCompare  : 000000000002.000000000000.000000000025
some more information:

we have here our own WUServer, but with the -getUpdatesFromMS it should use MS

on win7 computer i have domain account with local admin rights
on the server i use a local account with admin right, but the server is also in the domain

i'm available for tests or any other action you need me to do.
Nov 27, 2013 at 9:46 PM
that's strange, after a reboot the command Install-WindowsUpdate -getUpdatesFromMS lists all important, including the .Net 4.5.1 update , and optional updates

i really don't understand this behavior - this morning i started also with a fresh reboot

output
PS > Install-WindowsUpdate -getUpdatesFromMS
+ Boxstarter starting Checking for updates...
+ Boxstarter finished Checking for updates... 00:00:22.2474298
37 Updates found
 * Latvian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Czech Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Russian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Danish Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Italian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Hungarian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Korean Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Swedish Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Polish Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Croatian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Ukrainian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Norwegian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Greek Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Bulgarian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Portuguese (Portugal) Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Dutch Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Portuguese (Brazil) Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Spanish Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Chinese (Simplified) Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Slovenian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Chinese (Traditional) Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Japanese Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Thai Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Estonian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Lithuanian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Slovak Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Finnish Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Arabic Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Hebrew Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Serbian (Latin) Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Romanian Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * French Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Turkish Language Pack - Windows 7 Service Pack 1 for x64-based Systems (KB2483139) already downloaded
 * Microsoft SQL Server 2012 Service Pack 1 (KB2674319) already downloaded
 * Adding Internet Explorer 11 for Windows 7 for x64-based Systems to list of updates to download
 * Bing Desktop v1.3.1 already downloaded
 * Adding Microsoft .NET Framework 4.5.1 for Windows 7 x64-based Systems (KB2858725) to list of updates to download
+ Boxstarter starting Downloading 2 updates
Exception calling "Download" with "0" argument(s): "Exception from HRESULT: 0x80240044"
At C:\Users\berthgrh\AppData\Roaming\Boxstarter\Boxstarter.WinConfig\Install-WindowsUpdate.ps1:85 char:17
+                 $Downloader.Download() | Out-Null
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation
Coordinator
Nov 27, 2013 at 11:40 PM
I was looking at the update code and it looks like there is a bug related to overriding the update server with the public update server. I have v2.1 nearly ready to push and will include a fix. Thanks for bringing this up!