Physical disk information of a remote system
-
Hi, I am trying to fetch the information about remote computer. Initially, I need the information of number of physical disks and their sizes. I am taking help of the following registry key to get the number of physical disks (I am opening remote registry and querying these keys):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SCSI
These keys contains the number of disks on the system. But, I am unable to fetch their sizes.CreateFile
is not opening physical disks on remote system (returning INVALID_HANDLE_VALUE). Can anybody help resolving this issue? Kiran. -
Hi, I am trying to fetch the information about remote computer. Initially, I need the information of number of physical disks and their sizes. I am taking help of the following registry key to get the number of physical disks (I am opening remote registry and querying these keys):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SCSI
These keys contains the number of disks on the system. But, I am unable to fetch their sizes.CreateFile
is not opening physical disks on remote system (returning INVALID_HANDLE_VALUE). Can anybody help resolving this issue? Kiran.I suspect the answer might lie with WMI (Windows Management Instrumentation). In theory this technology can get you the information you want but I can't say I've had much luck with it myself. I'd be interested in any solution you finally come up with though as I've stalled on a similar problem in the past. Microsoft don't seem to publish an interface for talking to the Logical Disk Manager, even locally. If this has changed perhaps somebody else will be able to post a link.
Nothing is exactly what it seems but everything with seems can be unpicked.