473,396 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to use ManagementObjectSearcher to get properties of client system?

I want to use ManagementObjectSearcher in the System.Management namespace to get properties of client system runing my asp.net vb code. But the code gives me properties of the server machine. How do i get for the client machines. My code is pasted below:

Expand|Select|Wrap|Line Numbers
  1. Public Sub getInfo()
  2.         Dim search As New ManagementObjectSearcher("SELECT * FROM Win32_BIOS")
  3.         Dim search2 As New ManagementObjectSearcher("SELECT * FROM Win32_ComputerSystem")
  4.         Dim search3 As New ManagementObjectSearcher("SELECT * FROM Win32_Processor")
  5.         Dim info As ManagementObject
  6.         For Each info In search.Get()
  7.             TextBox1.Text = "Serial Number: " & info("serialnumber").ToString()
  8.             TextBox2.Text = "Manufacturer: " & info("Manufacturer").ToString()
  9.         Next
  10.         For Each info In search2.Get()
  11.             TextBox3.Text() = "Model: " & info("Model").ToString()
  12.             TextBox4.Text() = "Computer Name: " & info("Name").ToString()
  13.             TextBox5.Text() = "User Name Logged in: " & User.Identity.Name
  14.             TextBox6.Text = info("TotalPhysicalMemory").ToString() & (" KB of Ram")
  15.         Next
  16.         For Each info In search3.Get()
  17.             TextBox7.Text() = "CPU Clock Speed: " & info("Name").ToString()
  18.         Next
  19.         search = Nothing
  20.  
  21.         search2 = Nothing
  22.  
  23.         search3 = Nothing
  24.  
  25.  
  26.     End Sub
  27.  
  28.     Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
  29.         getInfo()
  30.     End Sub
Feb 2 '11 #1
1 3713
Plater
7,872 Expert 4TB
You would have to make silverlight or some type of activeX application. I don't even know if you can access that information from that environment.
Server codes runs on the server, find client side code.
Feb 2 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: R.D.CHETTY | last post by:
Hi all I have a web site where I use cookies to navigate between the pages. The cookie is his id no which is nothing but his staff id no. All most all pages are dynamic and connected to sql...
1
by: eddiekwang | last post by:
Hello, Is it necessary to upgrade the Client Connectivity Tools on all client machines after the SQL Server database server is upgraded from Version 7.0 to 2000? Thank you in advance! Eddy
4
by: Sean | last post by:
I've developed a VB6 application that uses a VB.Net dll. When distributed to client machines it works fine except for a few cases. The clients having problems seem to be missing RegAsm.exe from...
0
by: Ankur Tyagi via .NET 247 | last post by:
Hey, I have been trying to actually explore the various certificates available across all the platforms. I had started with Microsoft Certiying Authority of the microsoft. I had actually created a...
1
by: Felipe | last post by:
What comprises the on computers hosting non trivial.NET Windows Forms applications? Specifically, suppose I have developed a .NET 2.0 Windows Forms client and I've included a bunch of 3rd party...
2
by: =?Utf-8?B?S2plbGw=?= | last post by:
Hi I'm new to C# and .Net so be nice :-) I'm going throught a steep learing curve right now and finding it really hard when after several hours of coding is running into security issue when...
5
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
I used Visual Studio .NEt 2003 to develop a web form in which there is a bmp format image. I used WebControls.Image in Design and set ImageUrl property field to...
3
by: =?Utf-8?B?R2xlbm4gVGhpbW1lcw==?= | last post by:
Hello, I have a c# application hitting an asp.net web service. .net 2.0 I have been told by a customer of mine that it is necessary that I reduce the MTU size of all my outbound client web...
29
pradeepjain
by: pradeepjain | last post by:
Hii, I need to know is there any way to get the mac id's of the machines accessing ma site! I want to make a access lock using the mac id's <?php function returnmacaddress() { //...
1
by: Lohitha | last post by:
Can we get default printer name(in web application) of client machine in vb/c#.net or with js? reply asap thank you.
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.