Comments (5)
OK, it's working.
However, it seems best not to install the optional updates at the same time.
I run it like this:
# All "Normal" Updates
provisioner "windows-update" {
search_criteria = "IsInstalled = 0"
filters = [
"include:$true",
]
}
provisioner "windows-restart" {
pause_before = "1m"
restart_timeout = "30m"
}
# This run installs Optional updates => best run seperately
provisioner "windows-update" {
pause_before = "1m"
search_criteria = "IsInstalled = 0 And DeploymentAction=*"
filters = [
"include:$true",
]
}
Hopefully this will one day help somebody.
Enjoy and thanks for the great tool!
from packer-plugin-windows-update.
Did you read and follow the Search Criteria, Filters and Update Limit section on the README?
For example, to install everything you can use filters = ["include:$true"]
.
from packer-plugin-windows-update.
Hello all,
I have the same "issue" on Windows 2022
My settings are:
provisioner "windows-update" {
search_criteria = "IsInstalled=0"
filters = [
"include:$true",
]
}
from packer-plugin-windows-update.
Maybe set a search_criteria that explicitly searches for optional updates, have a look at the docs at https://docs.microsoft.com/en-us/windows/desktop/api/wuapi/nf-wuapi-iupdatesearcher-search
from packer-plugin-windows-update.
Thanks for the (fast) input.
I tried some options, but now I found this article:
https://docs.microsoft.com/en-us/answers/questions/412149/wuapilibiupdatesearcher-not-returning-patches-list.html
it mentions: "IsInstalled = 0 And DeploymentAction=*"
I'm running an install now and it seems to include the patch with these settings:
provisioner "windows-update" {
search_criteria = "IsInstalled = 0 And DeploymentAction=*"
filters = [
"include:$true",
]
}
I have to leave now, but I will come back on this this evening and let you know if it is all OK now.
Thanks!
from packer-plugin-windows-update.
Related Issues (20)
- error initializing provisioner 'windows-update': Unknown provisioner HOT 4
- Not all updates are being installed even when using multiple update-restart cycles HOT 3
- Windows 2022 Updates Installed... But Server Doesn't Think They Are HOT 5
- windows-update works intermittently
- Server 2022 Desktop Gets Stuck Waiting for operation to complete HOT 2
- HRESULT exceptions result in a successful build HOT 1
- Packer in Azure only applies the first update found (win-10 and win-11) HOT 1
- Do not restart after updates HOT 3
- Conditional values for SearchCriteria and Filters
- packer: command not found
- On Server 2012, scheduled task does not exit `101`, rather exits `2147942501` when reboot required HOT 5
- Duplicate SQL Server Updates found when running escalated Windows Update script resulting in HRESULT: 0x80240013 HOT 3
- Unknown Provisioner when running Windows 11 HOT 3
- Windows Update Download from Microsoft not working for the template behind proxy with authentication.
- Unable to download windows updates with this community provisioner
- Always installing the same update HOT 3
- Failed getting the plugin HOT 1
- Windows Update provisioner did not install patches HOT 1
- Windows 2022 - packer-windows-update-elevated.ps1 repeatedly fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-windows-update.