Skip to content

Instantly share code, notes, and snippets.

@wwilliams
Last active July 29, 2022 13:28
Show Gist options
  • Save wwilliams/bff351593b2a6e772a368d9d6aa2a34a to your computer and use it in GitHub Desktop.
Save wwilliams/bff351593b2a6e772a368d9d6aa2a34a to your computer and use it in GitHub Desktop.
PSWindowsUpdate remote update script depends on https://www.powershellgallery.com/packages/PSWindowsUpdate/
Import-Module PSWindowsUpdate
$cnList = @(
"computer1"
"computer2"
"computer3"
)
ForEach($cn in $cnList){
Get-WindowsUpdate -verbose -computer $cn -AcceptAll -install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment