Solved

Auditing PC's across a Network

Posted on 2008-06-16
5
488 Views
Last Modified: 2013-11-07
I have the need to maintain an audit of my Company's PC's across a Wide Area Network.  I need to retireve information from each PC/Laptop such as IP Address, User Name, User Full Name, Operating System and Service Pack, RAM, MS Office Version, CPU, Date Last Used, etc.  Does anyone have an example of how to do this in VB.NET (it would run as a scheduled task from a Windows 2003 server).
0
Comment
Question by:bertpet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 7

Expert Comment

by:CorruptedLogic
ID: 21798369
You could use something as simple as a batch file which calls msinfo32 and outputs to a text file based on the username. Something along the lines of

start msinfo32 /report c:\%username%.txt

You can play around with the switches to pull out only what you need.

HTH
0
 
LVL 10

Expert Comment

by:athapa
ID: 21799203
Use WMI to query informations you need from remote machines.

Use Directory Services to iterate through all available domains and then iterate through all available machines within each domains. Once you have a machine name then you can query those machines using WMI.

0
 
LVL 10

Expert Comment

by:athapa
ID: 21799211
0
 

Author Comment

by:bertpet
ID: 21877854
OK I have solved part of  this using ManagementObjectServer after all of the preliminaries with:
oWMISet = New ManagementObjectSearcher("\\" & strComputer & "\root\cimv2", "SELECT * FROM Win32_NetworkLoginProfile") AND then

 For Each objMgmt In oWMISet.Get
      strUserName = objMgmt("name").ToString()
 Next

This returns me the user name of the person logged into the nominated PC.  What I would like to know is what other information is available within this context, ie, if objMgmt("name").ToString() returns the user name then what syntax returns the User Full Name - is it objMgmt("fullname").ToString() OR objMgmt("userfullname").ToString().  How do you find out what other information is available using this context and what they are called ("name", "fullname", etc) - there seems to be a lack of clear information on the Internet on this?
Please help.
0
 
LVL 10

Accepted Solution

by:
athapa earned 500 total points
ID: 21880760
FullName will return fullname.

Check this link for a list of other properties available at that context.

http://www.dx21.com/SCRIPTING/WMI/SUBCLASS.ASP?CID=299

There are some WMI browsers which lets you see what classes/properties are available in various WMI name spaces. Here is one

http://www.shareup.com/WMI_Explorer-download-45595.html

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question