Install-WindowsUpdate
SYNOPSIS
Downloads and installs updates via Windows Update
SYNTAX
Install-WindowsUpdate
-getUpdatesFromMS -acceptEula -SuppressReboots [-criteria <String>]
<CommonParameters>
DESCRIPTION
This uses the windows update servise to search, download and install updates. By default, only critical updates are included and a reboot will be induced if required.
PARAMETER
GetUpdatesFromMS
If this switch is set, the default windows update server, if any, is bypassed and windows update requests go to the public Microsoft Windows update service.
AcceptEula
If any update requires a eula acceptance, setting this switch will accept the eula and allow the update to be installed.
SuppressReboots
Setting this switch will suppress a reboot in the event that any update requires one.
Criteria
The criteria used for searching updates. The default criteria is "BrowseOnly=0 and IsAssigned=1 and IsHidden=0 and IsInstalled=0 and Type='Software'" which is effectively just critical updates.