locked
How to get Hardware Information of Client PC? RRS feed

  • Question

  • User1139835739 posted

    Hi

    I am using ManagementObjectSearcher for retrieving Hardware information. But following code retruning hardware information of Server PC. But I need Hardware information of client PC. How can i get Hardware information of Client PC?

    string Info=""; ManagementObjectSearcher Q;
    Q = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_processor");
    foreach (ManagementObject mo in Q.Get())
           Info+= "<br />CPU Clock Speed: " + mo["CurrentClockSpeed"].ToString();

    Q = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_ComputerSystem");
    foreach (ManagementObject mo in Q.Get())
          Info+= "<br />Total Physical Memory: " + mo["totalphysicalmemory"].ToString();

    Q = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_LogicalDisk");
    foreach (ManagementObject mo in Q.Get())
         Info+= "<br />Serial Number of Drive(" + mo["Caption"] + "): " + mo["VolumeSerialNumber"];
                  

    Tuesday, November 3, 2009 12:34 PM

Answers

  • User798903548 posted

    You cannot get client-side info except through ActiveX or other client-side application. The code that you posted only operates on the server and that is why you are getting server info. You are trying to do what all hackers want to do -- read the client and, do to security concerns, that is not possible with normal web applications.

    NC...

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 27, 2009 6:15 PM

All replies

  • User-837620913 posted

    You can run an ActiveX object to get the info - but that limits you to IE only.

    Here's an example link:

    http://www.devarticles.com/c/a/JavaScript/How-to-Use-JavaScript-for-Hardware-Knowledge/


    Tuesday, November 3, 2009 1:05 PM
  • User1139835739 posted

    I have seen it before. But it's not working. And I need solution for Mozilla & IE also.

    Tuesday, November 3, 2009 2:09 PM
  • User1139835739 posted

    I didn't get any solution from there. But I need a solution urgently.

    1. Please let me know how can I solve this issue?
    2. Is there any way to contact asp.net directly or and email address to contact them?

    Please answer as soon as possible.

    Saturday, November 14, 2009 12:36 AM
  • User-1675817941 posted

    hi,

    This forum may heps you.

    this is relevent to your query.

    http://forums.asp.net/t/1139633.aspx

    Thanks :) 

    Saturday, November 14, 2009 12:51 AM
  • User1139835739 posted

    It's not the solution. I need details hardware informations of Client PC. I need a solution urgently. Please let me know - how can I solve this issue? Please provide a solutions as soon as possible.

    Monday, November 16, 2009 10:10 PM
  • User1139835739 posted

    It's not the solution. I need details hardware informations of Client PC. I need a solution urgently. Please let me know - how can I solve this issue? Please provide a solutions as soon as possible.

    Monday, November 16, 2009 10:12 PM
  • User-319574463 posted

    I suggest that you write a winforms application that your users can download, assess the machine and send the information by web service.

    I further suggest that you ask at http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=12&SiteID=1 about the getting the information you require.

    Sunday, November 22, 2009 9:19 AM
  • User-319574463 posted

    I need details hardware informations of Client PC.

    Exactly what information do you need to get?

    Friday, November 27, 2009 1:33 PM
  • User798903548 posted

    You cannot get client-side info except through ActiveX or other client-side application. The code that you posted only operates on the server and that is why you are getting server info. You are trying to do what all hackers want to do -- read the client and, do to security concerns, that is not possible with normal web applications.

    NC...

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 27, 2009 6:15 PM
  • User-319574463 posted

    It's not the solution. I need details hardware informations of Client PC

    Why do you need the information?

    Saturday, November 28, 2009 12:59 PM