Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Is there a way to detects all the problem devices in Device Manager, either in C# or Powershell
Posted

 
Share this answer
 
Comments
Jhony_Bravo 9-Sep-14 4:50am    
Sorry! but i had try that solution..., its not giving proper results.
A Simple program would be really help full.
In Power Shell :

$computer = "LocalHost"
$namespace = "root\CIMV2"
Get-WmiObject -class Win32_PnPEntity -computername $computer -namespace $namespace | Where{$_.ConfigManagerErrorCode -gt 0} | FT Name, ConfigManagerErrorCode,Status
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900