Powershell: Windows Update
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)