Installation du module

  1. Manual Installation:
    • This method is not typically recommended.
    • PowerShell modules are available at this address.
    • As indicated in the help documentation, download the modules and copy them to: %WINDIR%\System32\WindowsPowerShell\v1.0\Modules
    • Then, execute the command: import-module pswindowsupdate
  2. Standard Installation:
    • Simply execute the PowerShell command: Install-Module -Name PSWindowsUpdate -Force

Utilisation du Module

  • Get-WUsettings: Identify the active GPOs.

  • Get-WUinstall: Install patches. Note: Get-WUInstall and install-windowsupdate are identical commands.

Examples

Get-WUInstall -AcceptAll
Get-WUInstall -AcceptAll -Autoreboot
install-windowsupdate -notTitle "Malicious" -AcceptAll -IgnoreReboot
  • Get-WUHistory =>View the history of installations.
  • Get-WURebootStatus => Check if a reboot is pending.

0 commentaire

Laisser un commentaire

Emplacement de l’avatar

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.