O'Reilly logo
  • Mandar Gothoskar thinks this is interesting:

PS>  $computers = 'W16DSC01', 'W16DSC02'
PS>  Invoke-Command -ScriptBlock {Get-HotFix -Id KB3213986} `
-ComputerName $computers |
Format-Table HotFixId, InstalledOn, PSComputerName -AutoSize

HotFixID  InstalledOn         PSComputerName
--------  -----------         --------------
KB3213986 11/01/2017 00:00:00 W16DSC02
KB3213986 11/01/2017 00:00:00 W16DSC01

From

Cover of Windows PowerShell in Action, Third Edition

Note

Invoke-Command remotely