Skip to content

mikekei/Powershell-WUA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Powershell-WUA

Use this Powershell module to exploit Windows Update Agent Win32 API on your Windows system (WinX/WinServerX). This module contains functions that give you the abiilty to do following operations :

  • Search online missing (not installed) updates on the computer using a specified online service with the Windows Update Agent, and by update category.
  • Search missing (not installed) updates on the computer using a registered offline scan service (using offline catalog cab file) with the Windows Update Agent.
  • Install specified list of updates set in paramater.
  • Remove an update service by his ID.
  • Register a Microsoft Update Service for offline scan using your offline catalog cab file.
  • Download from Intenet the last up-to-date version of the Microsoft offline catalog, required for offline scan.

Installation

To install this module, use the following command :

Install-Module ".\PSWindowsUpdateAgent.psm1"

Search-MissingUpdatesOnline()

Search-MissingUpdatesOnline -UpdateService MicrosoftUpdate -UpdateCategory CriticalUpdates

Search-MissingUpdatesOffline()

Search-MissingUpdatesOffline -ServiceId 'ServiceId'

Install-Updates()

Install-Updates -MissingUpdatesCollection $yourMissingUpdates

Register-OfflineUpdateService()

Register-OfflineUpdateService -OfflineCatalogPath "YourPath\wsusscn2.cab"

Get-OfflineCatalogFromInternet()

Get-OfflineCatalogFromInternet -DestinationFolderPath "YourPath"

Remove-UpdateService()

Remove-UpdateService -ServiceId 'ServiceId'

License & Contributing

The PSWindowsUpdateAgent module is licensed under MIT. Any contributions highly appreciated!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PowerShell 100.0%