|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
WMI Getting Remote Computer Harddisk Infomy problem is, using wmi we can only get the hard disk info of machine running the asp.net application, now my question is can we get the client (Remote Machine) Harddisk info through the same WMI or do we need to use some other object in order to get remote machine harddisk info. reply is something i need on urgent basis. i want to get Client (Remote Computer) Hard disk info on my ASP.NET Page Dim wmiquery As WqlObjectQuery = New WqlObjectQuery("SELECT * FROM Win32_LogicalDisk") Dim wmifind As ManagementObjectSearcher = New ManagementObjectSearcher(wmiquery) Dim mobj As ManagementObject For Each mobj In wmifind.Get() Response.Write("Device ID: " + mobj("DeviceID") & "<br>") Response.Write("Description: " + mobj("Description") &"<br>") Response.Write("Drive's free space is: ") Response.Write(mobj("FreeSpace")) Response.Write("<br>") Response.Write("Drive's Capacity space is: ") Response.Write(mobj("Size")) Response.Write("<br>") Try Response.Write("Volume Name: " + mobj("VolumeName").ToString & "<br>") Response.Write("Volume Serial Number: " +mobj("VolumeSerialNumber") + "<br>") ' Response.Write("Volume Serial Number: " +mobj("VolumeSerialNumber") & "<br>") Catch ex As SystemExceptionEnd Try Next with this code i am getting info of my own machine, when i run from another remote computer it still shows my hard disk info instead of that machines hard disk info. Thanks |
|||||||||||||||||||||||