KB* packages - Work around Boxstarter issue #1129
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Use module-qualified cmdlet name for Install-WindowsUpdate, to prevent accidental clash with the Install-WindowsUpdate command from BoxStarter.
Motivation and Context
When using Boxstarter to install chocolatey packages, the Install-WindowsUpdate command with the same name from Boxstarter gets called. This installs ALL critical Windows updates by default, which is unwanted behavior. To work around this issue, please ensure the correct Install-WindowsUpdate is called. See here the relevant boxstarter issue. The same fix was implemented by jberezanski on the KB-packages he maintains, see the discussion around this fix here and the commit with his fix here.
How Has this Been Tested?
This fix has been tested using Boxstarter on Windows Server 2016 Standard.
Before fix: Install-WindowsUpdate from BoxStarter.WinConfig is called, resulting in all critical Windows updates being installed.
After fix: Install-WindowsUpdate from chocolateyInstaller is called as expected.
See the relevant logging here.
Types of changes
Checklist: