It is based on a script posted at http://blog.compower.org
FileExists(C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe) AND ShellCommandTextReturn(cmd /q /c powershell.exe -command "(Get-ChildItem 'REGISTRY::HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}' -ErrorAction SilentlyContinue | ForEach-Object {Get-ItemProperty $_.PSPath | Where-Object {$_.Characteristics -eq '132'} | Select DriverDesc, DriverVersion | Format-List | Out-String}) | ForEach-Object {If ($_ -match 'Driver') {$_.Trim()}}")
Comments