Hardware information of client computer

Dear Team,

Hello

i want to gather only hardware information of client computers connected on lacal area network in C#.


If somebody work on it then plz email me the code

i will be profuse gratitude for that.

Regards
imran khan
imee56@yahoo.com

Comments

  • This can be easily done using JavaScript:
    below are some Examples:

    //Bios
    functionButton1_onclick()
    {
    var locator = new ActiveXObject ("WbemScripting.SWbemLocator");
    var service = locator.ConnectServer(".");
    var properties = service.ExecQuery("SELECT * FROM Win32_BIOS");
    var e = new Enumerator (properties);
    document.write("");
    for (;!e.atEnd();e.moveNext ())
    {
    var p = e.item ();
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    }
    document.write("
    " + p.BIOSVersion(0) + "" + p.CurrentLanguage + "" + p.Description + "" + p.Manufacturer + "" + p.PrimaryBIOS + "" + p.ReleaseDate + "
    ");
    }

    //BUS
    functionButton1_onclick() {
    var locator = new ActiveXObject ("WbemScripting.SWbemLocator");
    var service = locator.ConnectServer(".");
    var properties = service.ExecQuery("SELECT * FROM Win32_BUS");
    var e = new Enumerator (properties);
    document.write("");
    for (;!e.atEnd();e.moveNext ())

    {
    var p = e.item ();
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    }
    document.write("
    " + p.BusType + "" + p.DeviceID + "" + p.PNPDeviceID + "" + p.SystemName + "
    ");
    }

    //RAM
    functionButton1_onclick()
    {
    var locator = new ActiveXObject ("WbemScripting.SWbemLocator");
    var service = locator.ConnectServer(".");
    var properties = service.ExecQuery("SELECT * FROM Win32_MemoryDevice");
    var e = new Enumerator (properties);
    document.write("");
    for (;!e.atEnd();e.moveNext ())
    {
    var p = e.item ();
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    document.write("");
    }
    document.write("
    " + p.DeviceID + "" + p.StartingAddress + "" + p.EndingAddress + "" + p.SystemName + "
    ");
    }

    Regards,
    Samrat Deb
    Hyderabad,
    Ind.

    : Dear Team,
    :
    : Hello
    :
    : i want to gather only hardware information of client computers
    : connected on lacal area network in C#.
    :
    :
    : If somebody work on it then plz email me the code
    :
    : i will be profuse gratitude for that.
    :
    : Regards
    : imran khan
    : imee56@yahoo.com
    :

    Samrat,
    Hyderabad - India.
  • Hello,

    Is there some way to retrieve the MAC address of a client computer *without* using ActiveX (and preferably using JavaScript)? The user may not have ActiveX enabled, in which case you get an object error on that statement.

    I need to figure this out asap, so any help is appreciated. Thanks,

    Selene

    : This can be easily done using JavaScript:
    : below are some Examples:
    :
    : //Bios
    : functionButton1_onclick()
    : {
    : var locator = new ActiveXObject
    : ("WbemScripting.SWbemLocator");
    : var service = locator.ConnectServer(".");
    : var properties = service.ExecQuery("SELECT * FROM
    : Win32_BIOS");
    : var e = new Enumerator (properties);
    : document.write("");
    : for (;!e.atEnd();e.moveNext ())
    : {
    : var p = e.item ();
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : }
    : document.write("
    " + p.BIOSVersion(0) + "" + p.CurrentLanguage + "" + p.Description + "" + p.Manufacturer + "" + p.PrimaryBIOS + "" + p.ReleaseDate + "
    ");
    : }
    :
    : //BUS
    : functionButton1_onclick() {
    : var locator = new ActiveXObject
    : ("WbemScripting.SWbemLocator");
    : var service = locator.ConnectServer(".");
    : var properties = service.ExecQuery("SELECT * FROM Win32_BUS");
    : var e = new Enumerator (properties);
    : document.write("");
    : for (;!e.atEnd();e.moveNext ())
    :
    : {
    : var p = e.item ();
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : }
    : document.write("
    " + p.BusType + "" + p.DeviceID + "" + p.PNPDeviceID + "" + p.SystemName + "
    ");
    : }
    :
    : //RAM
    : functionButton1_onclick()
    : {
    : var locator = new ActiveXObject
    : ("WbemScripting.SWbemLocator");
    : var service = locator.ConnectServer(".");
    : var properties = service.ExecQuery("SELECT * FROM
    : Win32_MemoryDevice");
    : var e = new Enumerator (properties);
    : document.write("");
    : for (;!e.atEnd();e.moveNext ())
    : {
    : var p = e.item ();
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : document.write("");
    : }
    : document.write("
    " + p.DeviceID + "" + p.StartingAddress + "" + p.EndingAddress + "" + p.SystemName + "
    ");
    : }
    :
    : Regards,
    : Samrat Deb
    : Hyderabad,
    : Ind.
    :
    : : Dear Team,
    : :
    : : Hello
    : :
    : : i want to gather only hardware information of client computers
    : : connected on lacal area network in C#.
    : :
    : :
    : : If somebody work on it then plz email me the code
    : :
    : : i will be profuse gratitude for that.
    : :
    : : Regards
    : : imran khan
    : : imee56@yahoo.com
    : :
    :
    : Samrat,
    : Hyderabad - India.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories