{"id":14986196,"url":"https://github.com/rgl/vagrant-windows-update","last_synced_at":"2025-06-21T04:42:43.026Z","repository":{"id":59159044,"uuid":"88355462","full_name":"rgl/vagrant-windows-update","owner":"rgl","description":"Vagrant plugin for installing Windows updates","archived":false,"fork":false,"pushed_at":"2018-04-15T07:17:23.000Z","size":18,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T00:42:52.707Z","etag":null,"topics":["update","vagrant","windows"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-15T15:20:46.000Z","updated_at":"2025-05-14T08:51:10.000Z","dependencies_parsed_at":"2022-09-13T20:10:53.598Z","dependency_job_id":null,"html_url":"https://github.com/rgl/vagrant-windows-update","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rgl/vagrant-windows-update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fvagrant-windows-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fvagrant-windows-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fvagrant-windows-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fvagrant-windows-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/vagrant-windows-update/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fvagrant-windows-update/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260783867,"owners_count":23062428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["update","vagrant","windows"],"created_at":"2024-09-24T14:12:30.721Z","updated_at":"2025-06-21T04:42:38.015Z","avatar_url":"https://github.com/rgl.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vagrant Windows Update Provisioner\n\n[![Latest version released](https://img.shields.io/gem/v/vagrant-windows-update.svg)](https://rubygems.org/gems/vagrant-windows-update)\n[![Package downloads count](https://img.shields.io/gem/dt/vagrant-windows-update.svg)](https://rubygems.org/gems/vagrant-windows-update)\n\nThis is a Vagrant plugin for installing Windows updates.\n\n**NB** This was only tested with Vagrant 2.0.3 and Windows Server 2016.\n\n# Installation\n\n```bash\nvagrant plugin install vagrant-windows-update\n```\n\n# Usage\n\nAdd `config.vm.provision \"windows-update\"` to your `Vagrantfile` to update your\nWindows VM during provisioning or manually run the provisioner with:\n\n```bash\nvagrant provision --provision-with windows-update\n```\n\nTo troubleshoot, set the `VAGRANT_LOG` environment variable to `debug`.\n\n## Example\n\nIn this repo there's an example [Vagrantfile](Vagrantfile). Use it to launch\nan example.\n\nFirst install the [Base Windows Box](https://github.com/rgl/windows-2016-vagrant).\n\nThen install the required plugins:\n\n```bash\nvagrant plugin install vagrant-windows-update\nvagrant plugin install vagrant-reload\n```\n\nThen launch the example:\n\n```bash\nvagrant up\n```\n\n**NB** On my machine this takes about 1h to complete... but YMMV!\n\n## Filters\n\nYou can select which Windows Updates are installed by defining a set of filters, e.g.:\n\n```ruby\nconfig.vm.provision \"windows-update\", filters: [\n  \"exclude:$_.Title -like '*Preview*'\",\n  \"include:$_.Title -like '*Cumulative Update for Windows*'\",\n  \"include:$_.AutoSelectOnWebSites\"]\n```\n\n**NB** If the `filters` argument is not used, only important updates are installed (equivalent of declaring a single `include:$_.AutoSelectOnWebSites` filter).\n\nThe general filter syntax is:\n\n    ACTION:EXPRESSION\n\n`ACTION` is a string that can have one of the following values:\n\n| action    | description                                                  |\n| --------- | ------------------------------------------------------------ |\n| `include` | includes the update when the expression evaluates to `$true` |\n| `exclude` | excludes the update when the expression evaluates to `$true` |\n\n**NB** If no `ACTION` evaluates to `$true` the update will **NOT** be installed.\n\n`EXPRESSION` is a PowerShell expression. When it returns `$true`, the\n`ACTION` is executed and no further filters are evaluated.\n\nInside an expression, the Windows Update [IUpdate interface](https://msdn.microsoft.com/en-us/library/windows/desktop/aa386099(v=vs.85).aspx) can be referenced by the `$_` variable.\n\n# Development\n\nTo hack on this plugin you need to install [Bundler](http://bundler.io/)\nand other dependencies. On Ubuntu:\n\n```bash\nsudo apt install bundler libxml2-dev zlib1g-dev\n```\n\nThen use it to install the dependencies:\n\n```bash\nbundle\n```\n\nBuild this plugin gem:\n\n```bash\nrake\n```\n\nThen install it into your local vagrant installation:\n\n```bash\nvagrant plugin install pkg/vagrant-windows-update-*.gem\n```\n\nYou can later run everything in one go:\n\n```bash\nrake \u0026\u0026 vagrant plugin uninstall vagrant-windows-update \u0026\u0026 vagrant plugin install pkg/vagrant-windows-update-*.gem\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fvagrant-windows-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fvagrant-windows-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fvagrant-windows-update/lists"}