Recover Drive Info from WMI

  • Thread starter Thread starter RayLarkin
  • Start date Start date
R

RayLarkin

Guest
The objective for a segment of my program is to acquire a stable serial number. Research has shown that PhysicalMedia and DiskDrive classes provide the best answer as the drive manufacturer's serial number is recovered. To isolate the drive LogicalDisk class has been used. Two possible cases exist for the drive pursued: 1- a mapped network drive; 2- a local IDE. If I use PowerShell and these classes the mapped network drive is acquired. Windows Management Instrumentation Tester also discovers the mapped network drive in LogicalDisk. But using ManagementObjectSearcher in C# in Visual Studio does not. The only help that I found searching MSDN has pointed to a CodeProject page that is 12 years old back when .Net was only version 2.0. Is WMI really the best that there is to offer or is there another technology that I should be using?

Continue reading...
 
Back
Top