GithubHelp home page GithubHelp logo

Comments (5)

GertVanderstukken avatar GertVanderstukken commented on July 17, 2024 2

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.

rgl avatar rgl commented on July 17, 2024

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.

GertVanderstukken avatar GertVanderstukken commented on July 17, 2024

Hello all,

I have the same "issue" on Windows 2022
image

My settings are:

  provisioner "windows-update" {
    search_criteria = "IsInstalled=0"
    filters = [
      "include:$true",
    ]
  }

from packer-plugin-windows-update.

rgl avatar rgl commented on July 17, 2024

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.

GertVanderstukken avatar GertVanderstukken commented on July 17, 2024

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)

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.