Update-Windows.ps1
<#PSScriptInfo .VERSION 1.1.0 .GUID a1f821bb-5100-4e94-89b7-e2d4970e1706 .AUTHOR Tigran TIKSN Thorosyan .COMPANYNAME .COPYRIGHT .TAGS .LICENSEURI .PROJECTURI .ICONURI .EXTERNALMODULEDEPENDENCIES .REQUIREDSCRIPTS .EXTERNALSCRIPTDEPENDENCIES .RELEASENOTES #> #Requires -Module PSWindowsUpdate <# .SYNOPSIS A brief description of the Update-Windows.ps1 file. .DESCRIPTION Install Windows Updates .PARAMETER AcceptAll A description of the AcceptAll parameter. .PARAMETER Verbose A description of the Verbose parameter. .NOTES Additional information about the file. #> param ( [switch]$AcceptAll, [switch]$Verbose ) Get-WUServiceManager | ForEach-Object { Install-WindowsUpdate -ServiceID $_.ServiceID -AcceptAll:$AcceptAll -Verbose:$Verbose } |