Difference between revisions of "Windows Update Powershell Commands"
From DFWLPiki
(Created page with "Category:Windows '''The PSWindowsUpdate set of commands is required.''' Apply all available updates: Set-ExecutionPolicy -ExecutionPolicy Bypass -Force Import-Module PS...") |
|||
Line 1: | Line 1: | ||
[[Category:Windows]] | [[Category:Windows]] | ||
'''The PSWindowsUpdate set of commands is required.''' | '''The PSWindowsUpdate set of commands is required.''' | ||
+ | |||
+ | Install the PSWindowsUpdate module: | ||
+ | Install-Module -Name PSWindowsUpdate –Force | ||
Apply all available updates: | Apply all available updates: |
Revision as of 19:23, 10 April 2020
The PSWindowsUpdate set of commands is required.
Install the PSWindowsUpdate module:
Install-Module -Name PSWindowsUpdate –Force
Apply all available updates:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Force Import-Module PSWindowsUpdate Get-WUInstall -AcceptAll
List all available updates
Set-ExecutionPolicy -ExecutionPolicy Bypass -Force Import-Module PSWindowsUpdate Get-WUList
Show Updates sources and which is default (Desired state is usually "true" for Windows Server Update Service)
Set-ExecutionPolicy -ExecutionPolicy Bypass -Force Import-Module PSWindowsUpdate Get-WUServiceManager