Powershell: Windows Update

~ 0 min
2023-02-03 16:13

Powershell ISE starten, ggf. Script-Ausführung aktivieren.

  • Get-WindowsUpdate - auf Updates prüfen
  • Install-WindowsUpdate - Updates installieren
    Install-WindowsUpdate -AcceptAll -AutoReboot

Modul PSWindowsUpdate

  • Import-Module PSWindowsUpdate - PowerShell Modul installieren
  • Get-Command –Module PSWindowsUpdate - listet alle Kommandos
  • Get-WUInstall - Update des PC's mit evtl. Bestätigung einer Eingabe
  • Get-WUInstall -MicrosoftUpdate -IgnoreUserInput -WhatIf -Verbose - Update des PC's ohne weitere Nutzereingabe
  • Get-WUList - Liste aller installierten Patche
  • Get-WUHistory - Liste aller installierten Updates, sogar über Funktionsupdates hinaus (dauert)
Durchschnittliche Bewertung 0 (0 Abstimmungen)

Es ist möglich, diese FAQ zu kommentieren.