{"id":13596587,"url":"https://github.com/mgajda83/PSWindowsUpdate","last_synced_at":"2025-04-09T16:33:13.286Z","repository":{"id":41237689,"uuid":"481607978","full_name":"mgajda83/PSWindowsUpdate","owner":"mgajda83","description":"This module contain cmdlets to manage Windows Update Client.","archived":false,"fork":false,"pushed_at":"2023-12-18T13:10:23.000Z","size":425,"stargazers_count":339,"open_issues_count":33,"forks_count":29,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-03-09T19:48:06.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgajda83.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.paypal.com/donate/?hosted_button_id=JTUBKNG3EMEXY"]}},"created_at":"2022-04-14T13:06:45.000Z","updated_at":"2025-03-04T08:24:33.000Z","dependencies_parsed_at":"2023-12-18T14:35:54.796Z","dependency_job_id":"0d42c58c-36bb-465c-8ab0-f67f2d5754ba","html_url":"https://github.com/mgajda83/PSWindowsUpdate","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/mgajda83%2FPSWindowsUpdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgajda83%2FPSWindowsUpdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgajda83%2FPSWindowsUpdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgajda83%2FPSWindowsUpdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgajda83","download_url":"https://codeload.github.com/mgajda83/PSWindowsUpdate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248067991,"owners_count":21042396,"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":[],"created_at":"2024-08-01T16:02:35.131Z","updated_at":"2025-04-09T16:33:08.271Z","avatar_url":"https://github.com/mgajda83.png","language":"PowerShell","funding_links":["https://www.paypal.com/donate/?hosted_button_id=JTUBKNG3EMEXY"],"categories":["PowerShell"],"sub_categories":[],"readme":"# PSWindowsUpdate\n[![PSGallery Version](https://img.shields.io/powershellgallery/v/PSWindowsUpdate.svg?style=flat\u0026logo=powershell\u0026label=PSGallery%20Version)](https://www.powershellgallery.com/packages/PSWindowsUpdate) [![PSGallery Downloads](https://img.shields.io/powershellgallery/dt/PSWindowsUpdate.svg?style=flat\u0026logo=powershell\u0026label=PSGallery%20Downloads)](https://www.powershellgallery.com/packages/PSWindowsUpdate) [![PowerShell](https://img.shields.io/badge/PowerShell-5.1-blue?style=flat\u0026logo=powershell)](https://www.powershellgallery.com/packages/PSWindowsUpdate) [![PSGallery Platform](https://img.shields.io/powershellgallery/p/PSWindowsUpdate.svg?style=flat\u0026logo=powershell\u0026label=PSGallery%20Platform)](https://www.powershellgallery.com/packages/PSWindowsUpdate)\n\nThis module contain cmdlets to manage Windows Update Client.\n\n## Table of Contents\n- [PSWindowsUpdate](#PSWindowsUpdate)\n- [Release Notes](#Release-Notes)\n- [Install module from the PowerShell Gallery](#Install-module-from-the-PowerShell-Gallery)\n- [Usage and Examples](#Usage-and-Examples)\n  - [Get-WindowsUpdate / Install-WindowsUpdate](#Get-WindowsUpdate-/-Install-WindowsUpdate)\n  - [Add-WUServiceManager](#Add-WUServiceManager)\n  - [Get-WUHistory](#Get-WUHistory)\n  - [Remove-WindowsUpdate](#Remove-WindowsUpdate)\n  - [Get-WUSettings / Set-WUSettings](#-WUSettings-/-Set-WUSettings)\n- [Support](#Support)\n\n# Release Notes\nv2.2.1  \n- Set-WUSettings added params to control TargetRelease for control Feature Updates version and Windows Update for Business\n- Fixed Remove-WindowsUpdate bug\n- Fixed Get-WUHistory bug\n- Fixed Get-WindowsUpdate sendreport bug\n\nv2.2.0  \n- New cmdlet Reset-WUComponents, for reset Windows Updates components to default\n- New cmdlet Get-WUOfflineMSU, for download offline msu package from microsoft Update Catalog\n\nv2.1.1  \n- Remove-WindowsUpdate added WU Api uninstallation mode\n- Fixed bug with slow run cmdlets\n- Added support for Office 365 users to send emails\n\nv2.1.0  \n- New cmdlet Set-PSWUSettings, for save PSWUSettings to xml file\n- Param -SendReport can use smtp server credentials\n- Install-WindowsUpdate added -RecurseCycle param, to install next updates after reboot\n- Install-WindowsUpdate added new pre search criteria: DeploymentAction, IsAssigned, IsPresent, BrowseOnly and AutoSelectOnWebSites\n- Change location of PSWindowsUpdate.log file to $Env:TEMP\n- Fixed Get-WULastResults bugs\n- Fixed Remove-WUServiceManager bugs\n\nv2.0.0 \n- Rewrite whole script module to binary module\n\n# Install module from the PowerShell Gallery\n```PowerShell\nInstall-Module PSWindowsUpdate\n```\n\n# Usage and Examples\nImport the module:\n```PowerShell\nImport-Module PSWindowsUpdate\n```\n### Get-WindowsUpdate / Install-WindowsUpdate\nGet windows updates available from default service manager.\n```PowerShell\nGet-WindowsUpdate\n```\n\nGet all available update on remote machine MG-PC, that contains in Title this two words 'Aktualizacja' and 'Windows 11' (as regular expression).\n```PowerShell\nGet-WindowsUpdate -ComputerName MG-PC -MicrosoftUpdate -Title \"Aktualizacja.*Windows 11\" -Verbose\n```\n\nHide update with KBArticleID: KB4034658.\n```PowerShell\nGet-WindowsUpdate -KBArticleID KB4034658 -Hide -Verbose\n```\n...or use alias\n```PowerShell\nHide-WindowsUpdate -KBArticleID KB4034658 -Verbose\n```\n\nSchedule job at 6:00 PM to install update with UpdateId='ddb74579-7a1f-4d1f-80c8-e8647055314e' and RevisionNumber=200. Update will be automaticaly accepted and after all server will be automaticaly restarted if needed.\n```PowerShell\nGet-WindowsUpdate -MicrosoftUpdate -UpdateID ddb74579-7a1f-4d1f-80c8-e8647055314e -RevisionNumber 200 -ScheduleJob (Get-Date -Hour 18 -Minute 0 -Second 0) -Install -AcceptAll -AutoReboot -Verbose\n```\n...or use alias\n```PowerShell\nInstall-WindowsUpdate -MicrosoftUpdate -UpdateID ddb74579-7a1f-4d1f-80c8-e8647055314e -RevisionNumber 200 -ScheduleJob (Get-Date -Hour 18 -Minute 0 -Second 0) -AcceptAll -AutoReboot -Verbose\n```\n\n### Add-WUServiceManager\nTry register Microsoft Update service as Service Manager.\n```PowerShell\nAdd-WUServiceManager -MicrosoftUpdate\n```\n\nTry register Offline Sync Service from file C:\\wsusscn2.cab.\n```PowerShell\nAdd-WUServiceManager -ScanFileLocation C:\\wsusscn2.cab\n```\n\n### Get-WUHistory\nGet Windows Update history.\n```PowerShell\nGet-WUHistory\n```\n\nGet Windows Update Agent history for last 24h.\n```PowerShell\nGet-WUHistory -MaxDate (Get-Date).AddDays(-1)\n```\n\n### Remove-WindowsUpdate\nTry to uninstall update with specific KBArticleID = KB958830.\n```PowerShell\nGet-WUUninstall -KBArticleID KB958830\n```\n\n### Get-WUSettings / Set-WUSettings\nGet current Windows Update Client configuration.\n```PowerShell\nGet-WUSettings\n```\n\nSet the target version for feature updates to Windows 10 22H2.\n```PowerShell\nSet-WUSettings -TargetReleaseVersion -TargetReleaseVersionInfo 22H2 -ProductVersion \"Windows 10\"\n```\n\n# Support\nI develop most of my code under open licenses, free of charge.\nIf you are satisfied with these solutions, you can express your [support for me](https://www.paypal.com/donate/?hosted_button_id=JTUBKNG3EMEXY).\nThe greater your support, the greater the motivation to develop them further. The more motivation, the more things I can create.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgajda83%2FPSWindowsUpdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgajda83%2FPSWindowsUpdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgajda83%2FPSWindowsUpdate/lists"}