GithubHelp home page GithubHelp logo

Comments (3)

rgl avatar rgl commented on August 15, 2024

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.

dpb519 avatar dpb519 commented on August 15, 2024

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.

rgl avatar rgl commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.