J
Jesse
Hi,
Sorry for the newb question, but, well, I'm a newb when it comes to WMI.
I'm trying to access SMART disk failure data using WMI from VB.NET on Win XP
SP1. I've
gotten basic disk info with:
Dim oQuery As New System.Management.ObjectQuery("select * from
Win32_DiskDrive")
....but when I try
Dim oQuery As New System.Management.ObjectQuery("Select * From
MSStorageDriver_FailurePredictData")
I get "An unhandled exception of type
'System.Management.ManagementException' occurred in system.management.dll
Additional information: Invalid class"
Can anybody tell me what I'm doing wrong?
Thanks!
Here's the actual code:
Dim oQuery As New System.Management.ObjectQuery("Select * From
MSStorageDriver_FailurePredictData")
Dim oSearcher = New ManagementObjectSearcher(oQuery)
Dim oReturnCollection As ManagementObjectCollection = oSearcher.Get()
Dim oReturn As ManagementObject
For Each oReturn In oReturnCollection
...
Next
--
Sorry for the newb question, but, well, I'm a newb when it comes to WMI.
I'm trying to access SMART disk failure data using WMI from VB.NET on Win XP
SP1. I've
gotten basic disk info with:
Dim oQuery As New System.Management.ObjectQuery("select * from
Win32_DiskDrive")
....but when I try
Dim oQuery As New System.Management.ObjectQuery("Select * From
MSStorageDriver_FailurePredictData")
I get "An unhandled exception of type
'System.Management.ManagementException' occurred in system.management.dll
Additional information: Invalid class"
Can anybody tell me what I'm doing wrong?
Thanks!
Here's the actual code:
Dim oQuery As New System.Management.ObjectQuery("Select * From
MSStorageDriver_FailurePredictData")
Dim oSearcher = New ManagementObjectSearcher(oQuery)
Dim oReturnCollection As ManagementObjectCollection = oSearcher.Get()
Dim oReturn As ManagementObject
For Each oReturn In oReturnCollection
...
Next
--