Management.ManagementObject class

A

Adele le Roux

I have the following code to retrieve the CPU ID of the local computer. How
do I know which other keywords I can use instead of "ProcessorID" to
retrieve other hardware information?
Dim strKey As String

Dim searcher As New Management.ManagementObjectSearcher("SELECT * FROM
Win32_Processor")

Dim share As Management.ManagementObject

For Each share In searcher.Get()

strKey = share("ProcessorId").ToString()

Return strKey

Next share
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top