PC Auditor

  • Thread starter Thread starter Terry Olsen
  • Start date Start date
T

Terry Olsen

I have an idea for a PC auditor program to replace the clunky one that my
company uses. I need to find some good info on how to enumerate all the
devices, installed software, licences, quickly scan the hard drives, etc.
Any help is appreciated. Thanks!
 
Terry,

I think that you are looking for the management namespace.

http://msdn.microsoft.com/library/d...ry/en-us/cpref/html/frlrfsystemmanagement.asp

At first sight it looks difficult. Remember than that it exist from all
kinds of collections, which itself holds as well again collection.

One of the most basic commands is the "Select" which needs a string

As very little samples
\\\Set a reference to system.managagement
Dim disk As New Management.ManagementObject( _
"Win32_LogicalDisk.DeviceID=""C:""")
Dim diskProperty As Management.PropertyData
MessageBox.Show(disk.Properties("VolumeSerialNumber").Value.ToString)
///
\\\Set a reference to system.managagement
myman as new ManagementObject("Win32_logicaldisk.deviceid=""c:\"")
myman.Get
Console.Write(myman("size").ToString);
////

I hope this helps a little bit?

Cor
 

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

Back
Top