Created
January 5, 2016 03:12
-
-
Save rpavlik/4ba3835e6d4f86d1880c to your computer and use it in GitHub Desktop.
powershell one-liner to check firmware version on hdk camera
This file contains 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
if (@(Get-WmiObject -class Win32_PnPEntity -namespace 'root\CIMV2' | where {$_.DeviceID -like 'USB\VID_0BDA&PID_57E8&REV_0005' -or $_.DeviceID -like 'USB\VID_0BDA&PID_57E8&REV_0006'}).Count -gt 0) { echo "You need firmware updates" } else {echo "No devices found or they're up to date!"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment