Last active
July 29, 2022 13:28
-
-
Save wwilliams/bff351593b2a6e772a368d9d6aa2a34a to your computer and use it in GitHub Desktop.
PSWindowsUpdate remote update script depends on https://www.powershellgallery.com/packages/PSWindowsUpdate/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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