PC configurations

  • Thread starter Thread starter DMc2005
  • Start date Start date
D

DMc2005

Hi

We currently have a problem where we have very little information about sets
of PCs at other sites. When I mean very little information, we have no
information about:

* PC Hardware (RAM, HDD, Graphics, Sound, Network Card, Processor)
* Operating System Settings (OS Type, Service Packs, Drivers)
* Software (Installed Software, Versions)

Basically we need everything about the PC.

Does anybody know of any software that can do this. Ideally we prefer
Microsoft. We do have a current MSDN subscription, so is there anything in
there.

Any ideas or links would be gladly received.

D
 
DMc2005 said:
Hi

We currently have a problem where we have very little information about sets
of PCs at other sites. When I mean very little information, we have no
information about:

* PC Hardware (RAM, HDD, Graphics, Sound, Network Card, Processor)
* Operating System Settings (OS Type, Service Packs, Drivers)
* Software (Installed Software, Versions)

Basically we need everything about the PC.

Does anybody know of any software that can do this. Ideally we prefer
Microsoft. We do have a current MSDN subscription, so is there anything in
there.

Any ideas or links would be gladly received.

D

http://www.belarc.com/free_download.html

Jud
 
Hi MDc2005,

The home page for WMI is here:

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_start_page.asp>

and below is a code example of how to get operating system information
and a list of processes.

Copy and paste this text into a text file called GetInfo.js and then run
it from the command line under CScript. e.g.

cscript GetInfo.js

This will work with the local computer, or

cscript GetInfo.js someothercomputer

This will work with the remote computer which you must have Admin rights
for, and must be available on your network.

* LOOK OUT FOR LINE WRAP! *


// GetInfo.js
// Run this under CSCRIPT
// Usage: GetInfo [computername]
// If you don't supply a computername, the local machine will be used

var cArgs = WScript.Arguments;
var sComputer = cArgs.Count() ? cArgs(0) : ".";
var oLoc = new ActiveXObject("WbemScripting.SWbemLocator");
var oSvc = oLoc.ConnectServer(sComputer, "root\\cimv2");
osInfo(oSvc);
enumProc(oSvc);
oSvc = null;
oLoc = null;

function osInfo(oSvc) {
// Get the name of the operating system
var strWQL = "SELECT * FROM Win32_OperatingSystem WHERE Primary='true'";
var wbemObjectSet = oSvc.ExecQuery(strWQL);
var e = new Enumerator(wbemObjectSet);
e.moveFirst();
var sName = e.item().Name;
_trace(sName);
}

function enumProc(oSvc) {
// Displays list of processes - PID, Name
// Accepts a WBEM Service object
var strWQL = "Select ProcessID, Name from Win32_Process";
var wbemObjectSet = oSvc.ExecQuery(strWQL);

// Enumerate the processes
var e = new Enumerator(wbemObjectSet);
for(;!e.atEnd();e.moveNext()) {
var thisProc = e.item();
_trace(thisProc.ProcessID + "\t" + thisProc.Name);
}
}

function _trace(strMsg) {
WScript.Echo(strMsg);
}
 
Back
Top