Need script to pull system info from servers.

Posted on 2007-10-05
Medium Priority
Last Modified: 2012-08-13
Hello, I am not a scripter by any means. I have a project that requires me to get some info from a set list of servers. What I need is Make, Model, Serial Number, # and Speed of physical processors, Memory, Total disk, Used disk, OS version, and Domain. I was wondering if any of you incredibly talented scriptors have something like this in your collections. Thanks in advance.
Question by:Macom
LVL 30

Accepted Solution

SteveGTR earned 1500 total points
ID: 20025052
Could do something like this in a batch file:

@echo off


set inFile=%~1

if "%~1"=="" set /p inFile=Please enter the server list file:
if "%inFile%"=="" echo Processing aborted&goto :EOF

if not exist "%inFile%" echo %inFile% does not exist&goto :EOF

for /f "tokens=*" %%a in ('type "%inFile%"') do echo Server: %%a&wmic /node:%%a computersystem get Manufacturer,Model /value

You can get the various field names by doing this:

wmic /node:computername computersystem get /?
wmic /node:computername cpu /?
LVL 12

Expert Comment

ID: 20025062
Someone posted a script here that grabs information from servers and posts back XML data:



Author Comment

ID: 20034304
Thanks Steve. This solution was very workable with my limited scripting capabilities and provides many other possibilities too.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses
Course of the Month15 days, 23 hours left to enroll

850 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