2

How to get information about device driver of the system . like Manufacturer,hardwareID,DriverAssembly Version of that device in .net programming

abhi294074
  • 257
  • 1
  • 3
  • 9
  • possible duplicate of [Get pc (system) information on windows machine - C# script](http://stackoverflow.com/questions/4742389/get-pc-system-information-on-windows-machine-c-sharp-script) – MSalters Apr 23 '12 at 14:27

2 Answers2

2

I believe the question Get PC System Information on Windows Machine, in particular the answer dealing with WMI and How To Almost Everything IN WMI - Part 3: Hardware gets you what you need.

Community
  • 1
  • 1
Joshua Drake
  • 2,704
  • 3
  • 35
  • 54
  • Also the System.Management answer to [Get Information about Computer in Domain](http://stackoverflow.com/questions/971321/c-get-information-about-computer-in-domain) may help. – Joshua Drake Apr 23 '12 at 13:40
0

To achieve the above, ManagementObjectSearcher in c# is good enough. You just need to include
using System.Management;
use the bellow code -

 ManagementObjectSearcher mos =
                   new ManagementObjectSearcher(@"\root\cimv2", @"Select * From Win32_PnPEntity WHERE ClassGuid = '"+deviceGuid+"'");
Brad Larson
  • 170,088
  • 45
  • 397
  • 571
codedip
  • 191
  • 3
  • 11