I have the following Code:
Dim query As New SelectQuery("Win32_DiskDrive")
Dim searcher As New ManagementObjectSearcher(query)
Dim disk As ManagementObject
For Each disk In searcher.Get
Debug.WriteLine(disk("MediaLoaded") & vbTab & disk("InterfaceType"))
Next
Problem is it does not iterate through all disk drives????
Any ideas.
Dim query As New SelectQuery("Win32_DiskDrive")
Dim searcher As New ManagementObjectSearcher(query)
Dim disk As ManagementObject
For Each disk In searcher.Get
Debug.WriteLine(disk("MediaLoaded") & vbTab & disk("InterfaceType"))
Next
Problem is it does not iterate through all disk drives????
Any ideas.