Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Install-Module -Name PSWindowsUpdate
Import-Module PSWindowsUpdate
Get-Command -Module PSWindowsUpdate
Get-WindowsUpdate
Install-WindowsUpdate
Get-WindowsUpdate
Get-WindowsUpdate -AcceptAll -Install -AutoReboot
avec le résultat de la commande Get-WindowsUpdate vous aurez le numéro KBxxxxxxx à remplacer exemple ci-dessous et entre guillemetsle KBID svp.
Get-WindowsUpdate -Install -KBArticleID 'KB5021233'
Get-WUHistory -MaxDate (Get-Date).AddDays(-30) -Last 100
Get-WindowsDriver -Online -All