{"id":19631652,"url":"https://github.com/noma4i/puppet-windows_updates","last_synced_at":"2025-04-28T06:33:24.949Z","repository":{"id":55650526,"uuid":"29572738","full_name":"noma4i/puppet-windows_updates","owner":"noma4i","description":"Manage Windows Updates from puppet","archived":false,"fork":false,"pushed_at":"2020-12-15T10:34:35.000Z","size":232,"stargazers_count":13,"open_issues_count":4,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-22T08:13:36.627Z","etag":null,"topics":["devops-tools","puppet-module","windows-updates"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noma4i.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-21T05:15:47.000Z","updated_at":"2023-12-06T23:19:41.000Z","dependencies_parsed_at":"2022-08-15T05:31:22.237Z","dependency_job_id":null,"html_url":"https://github.com/noma4i/puppet-windows_updates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Fpuppet-windows_updates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Fpuppet-windows_updates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Fpuppet-windows_updates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Fpuppet-windows_updates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noma4i","download_url":"https://codeload.github.com/noma4i/puppet-windows_updates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251266064,"owners_count":21561775,"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":["devops-tools","puppet-module","windows-updates"],"created_at":"2024-11-11T12:10:41.906Z","updated_at":"2025-04-28T06:33:24.586Z","avatar_url":"https://github.com/noma4i.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# windows_updates\n\nPuppet module to install selected windows updates or mask of updates etc.\n\n#### Cavets\n\nYou may need to use `puppet module install --ignore-dependencies` as powershell may present in your modules\n\n#### How to use\n\nInstall specific update by KB number.\n\n```puppet\n  windows_updates::kb {'KB3012199':\n    ensure =\u003e 'present'\n  }\n````\n or\n```puppet\n  windows_updates::kb {'Some custom description':\n    ensure =\u003e 'present',\n    kb     =\u003e 'KB3012199'\n  }\n````\n\nInstall specific update by KB number in a maintenance window.\n\n```puppet\n  windows_updates::kb {'KB3012199':\n    ensure      =\u003e 'present',\n    maintwindow =\u003e 'patch_window'\n  }\n  schedule { 'patch_window':\n    range   =\u003e '01:00 - 03:00',\n    weekday =\u003e 'Saturday',\n    repeat  =\u003e 1\n  }\n````\n\nInstall Updates by name or mask. Will install all updates matching `.Net*` mask\n\n```puppet\n  windows_updates::list {'.Net Updates':\n    ensure    =\u003e 'present',\n    name_mask =\u003e '.Net*'\n  }\n````\n\nIf you are not sure what updates go with name you set - use `dry_run` option and point it to output file.\n\n```puppet\n  windows_updates::list {'.Net Updates':\n    ensure    =\u003e 'present',\n    dry_run   =\u003e 'C:\\\\what_will_be_installed.txt'\n    name_mask =\u003e '.Net*'\n  }\n````\n\nIn this case your `what_will_be_installed.txt` will look like:\n\n```csv\n  ComputerName Status KB          Size Title\n  ------------ ------ --          ---- -----\n  WIN-H7VQ4... ------ KB2931358 322 KB Security Update for Microsoft .NET Frame...\n  WIN-H7VQ4... ------ KB2931366 584 KB Security Update for Microsoft .NET Frame...\n  WIN-H7VQ4... ------ KB2961851  15 MB Security Update for Internet Explorer 11...\n  WIN-H7VQ4... ------ KB2934520  72 MB Microsoft .NET Framework 4.5.2 for Windo...\n```\n\nInstall an update from within a WinRM remote session. Because wusa.exe cannot be used over WinRM directly, and `Invoke-WUInstall.ps1` works around this by scheduling a task to actually install the update.\n\n```puppet\n  windows_updates::invoke_remote {'Some cool KB!':\n    ensure =\u003e 'present',\n    kb =\u003e 'KB3012199'\n  }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoma4i%2Fpuppet-windows_updates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoma4i%2Fpuppet-windows_updates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoma4i%2Fpuppet-windows_updates/lists"}