Hello,
Here is an update on this project I'm working on,
So far I've been able to get information from my local computer using the
code below,
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim search As New ManagementObjectSearcher("SELECT * FROM Win32_BIOS")
Dim search2 As New ManagementObjectSearcher("SELECT * FROM
Win32_ComputerSystem")
Dim search3 As New ManagementObjectSearcher("SELECT * FROM Win32_Processor")
Dim info As ManagementObject
For Each info In search.Get()
TextBox1.Text = "Serial Number: " & info("serialnumber").ToString() & CRLF
TextBox1.Text += "Manufacturer: " & info("Manufacturer").ToString() & CRLF
Next
For Each info In search2.Get()
TextBox1.Text() += "Model: " & info("Model").ToString() & CRLF
TextBox1.Text() += "Computer Name: " & info("Name").ToString() & CRLF
TextBox1.Text() += "User Name Logged in: " & info("UserName").ToString() &
CRLF & CRLF
TextBox1.Text() += "Total Physical Memory: " &
info("TotalPhysicalMemory").ToString() & (" KB of Ram") & CRLF
Next
For Each info In search3.Get()
TextBox1.Text() += "CPU Clock Speed: " & info("Name").ToString() & CRLF
Next
End Sub
Some of this code was cut and pasted from other snips of code I found on the
internet and some of it I wrote myself, I'm still new at this.
Anyhow, now I want to get this info from computers on my network. From what
I read WMI is using the default namespace or local computer to get this
info. How would I code in a different computer to get this info? I can't
seem to find any good examples of this on the web.
Thanks,
Jim
"Jim Scheffler" <Ji*****@charter.com> wrote in message
news:eP**************@TK2MSFTNGP12.phx.gbl...
I'm new to VB.NET programming and would like some help on a little project
I've got going.
How would I go about getting computer information on my local computer,
i.e. serial number, hard drive size, memory installed, etc. Then take it one
step further and gather this info for all computers on a network.
I really appreciate any help on this,
Jim Scheffler