This file contains hidden or 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
# Based on a script from Mike F. Robbins | https://twitter.com/mikefrobbins | |
# http://mikefrobbins.com/2017/05/18/use-powershell-to-determine-if-specific-windows-updates-are-installed-on-remote-servers/ | |
# Customized by Paul G. Fitzgerald | https://twitter.com/pgfitzgerald | |
$Timestamp = Get-Date -Format "yyyyMMdd-HHmmss" | |
$Computers = Get-ADComputer -Filter * | |
# Adjust ThrottleLimit as needed | |
Invoke-Command -ComputerName ($Computers | Select-Object -ExpandProperty Name) -ThrottleLimit 32 -ScriptBlock { | |
$Patches = 'KB4012598', # Windows XP, Windows Vista, Windows 8, Windows Server 2003 |