Skip to content

Instantly share code, notes, and snippets.

@jeffgreenca
Created May 23, 2016 18:13
Show Gist options
  • Save jeffgreenca/2dcbb166593f36047564db291833422e to your computer and use it in GitHub Desktop.
Save jeffgreenca/2dcbb166593f36047564db291833422e to your computer and use it in GitHub Desktop.
#Check for Windows VMs with LSI driver version affected by VMware KB 2063346
(Get-VM | ? powerstate -eq "PoweredOn" | ? {$_.guest.osfullname -match "Windows"}).Guest | Export-Csv temp.csv
Import-Csv temp.csv | % { Get-WmiObject Win32_PnPSignedDriver -ComputerName $_.Hostname | select __SERVER, devicename, driverversion | where {$_.devicename -like "*LSI*" } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment