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.

2 Comments

Fred · 16 June 2024 at 10h35

Il est super ce module !

rodrigue · 29 July 2024 at 22h23

Lorsque j’execute la commande: Get-WUSettings -ComputerName Poste0

J’obtiens l’erreur ci-dessous

Get-WUSettings : Le chemin réseau n’a pas été trouvé.
Au caractère Ligne:1 : 1
+ Get-WUSettings -ComputerName Poste1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-WUSettings], IOException
+ FullyQualifiedErrorId : System.IO.IOException,PSWindowsUpdate.GetWUSettings

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.