Skip to content

Instantly share code, notes, and snippets.

View pgfitzgerald's full-sized avatar

Paul Fitzgerald pgfitzgerald

  • Microsoft Corporation
  • Memphis, TN
View GitHub Profile
# 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