Skip to content

Instantly share code, notes, and snippets.

@rebrec
Last active May 12, 2021 13:00
Show Gist options
  • Save rebrec/e2306ff2f52315dd3a7c0a96922ca902 to your computer and use it in GitHub Desktop.
Save rebrec/e2306ff2f52315dd3a7c0a96922ca902 to your computer and use it in GitHub Desktop.
# This example script will output information about the video driver on remote computers
# It allows to quickly compare 2 or more computer against their driver version to potentialy
# identify driver differences between a buggy computer and a working one
$computers = @("computer1","computer2")
Get-WmiObject -query "Select Caption,DriverVersion,DriverDate,InfSection,InstalledDisplayDrivers,SystemName From Win32_VideoController" `
-ComputerName $computers `
| Select SystemName,Caption,DriverVersion,DriverDate,InfSection,InstalledDisplayDrivers `
| Out-GridView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment