Comments (3)
What was the actual output? Did it say "Skipped"?
The last time I've looked at it, the Windows Update UI had a different button/workflow for doing feature upgrades, so maybe these features upgrades need to be done in other way?
Maybe you can try to find it out and submit a PR? :-)
The code that actually searches and applies the updates is at https://github.com/rgl/packer-provisioner-windows-update/blob/master/update/windows-update.ps1
from packer-plugin-windows-update.
The last time I've looked at it, the Windows Update UI had a different button/workflow for doing feature upgrades, so maybe these features upgrades need to be done in other way?
-- this is what I was trying to find out.
Below are the logs, it says no updates found.
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:34:08 packer: System.Management.Automation.PSCustomObjectSystem.Object1Preparing modules for first use.0-1-1Completed-1 #< CLIXML
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER OUT ==> azure-arm: Uploading the Windows update script...
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:34:08 packer-provisioner-windows-update: 2020/02/19 09:34:08 [INFO] 9759 bytes written for 'uploadData'
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:34:08 [INFO] 9759 bytes written for 'uploadData'
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:34:08 packer: System.Management.Automation.PSCustomObjectSystem.Object1Preparing modules for first use.0-1-1Completed-1 2020/02/19 09:34:08 Uploading file to 'C:/Windows/Temp/packer-windows-update.ps1'
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:34:10 packer: #< CLIXML
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:34:13 packer: System.Management.Automation.PSCustomObjectSystem.Object1Preparing modules for first use.0-1-1Completed-1 #< CLIXML
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER OUT ==> azure-arm: Running Windows update...
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:34:13 packer: System.Management.Automation.PSCustomObjectSystem.Object1Preparing modules for first use.0-1-1Completed-1 2020/02/19 09:34:13 [INFO] starting remote command: PowerShell -ExecutionPolicy Bypass -OutputFormat Text -File C:/Windows/Temp/packer-windows-update-elevated.ps1
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER OUT azure-arm: Searching for Windows updates...
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 packer: 2020/02/19 09:35:03 [INFO] command 'PowerShell -ExecutionPolicy Bypass -OutputFormat Text -File C:/Windows/Temp/packer-windows-update-elevated.ps1' exited with code: 0
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER OUT azure-arm: No Windows updates found
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 packer: 2020/02/19 09:35:03 [INFO] RPC endpoint: Communicator ended with: 0
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER OUT ==> azure-arm: Provisioning with Powershell...
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 [INFO] 0 bytes written for 'stderr'
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER OUT ==> azure-arm: Provisioning with powershell script: /tmp/powershell-provisioner580512841
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 [INFO] 60 bytes written for 'stdout'
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 [INFO] RPC client: Communicator ended with: 0
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 [INFO] RPC endpoint: Communicator ended with: 0
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 packer-provisioner-windows-update: 2020/02/19 09:35:03 [INFO] 60 bytes written for 'stdout'
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 packer-provisioner-windows-update: 2020/02/19 09:35:03 [INFO] 0 bytes written for 'stderr'
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 packer-provisioner-windows-update: 2020/02/19 09:35:03 [INFO] RPC client: Communicator ended with: 0
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 [INFO] (telemetry) ending windows-update
[1e29b853-ab8f-4ce6-84ea-0c7148878484] PACKER ERR 2020/02/19 09:35:03 [INFO] (telemetry) Starting provisioner powershell
from packer-plugin-windows-update.
So it really seems that to install feature upgrades some other api (or flag) needs to be called/used. But I do not known which api is that, and since I do not have a particular need for feature upgrades, you'll have to research it yourself and hopefully submit a PR.
from packer-plugin-windows-update.
Related Issues (20)
- Win2022 - "Optional quality update available" HOT 5
- 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 7
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.