Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


August 11, 2006

Obtain Computer Information in an Easy-to-Read Format

RSS
Subscribe to Windows IT Pro | See More Systems Administration Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Download the Code Here

Our account managers were constantly asking us to give them information regarding our servers, but they didn't like getting the Windows Microsoft Diagnostics (WinMSD) dump. So, I wrote a script, All_Information.vbs, to obtain computer information. The script refines that information and writes it to a text file named computer _name.txt, where computer_name is the name of the computer from which the information was obtained.

All_Information.vbs gives you the computer's information in three sections:

  • System Information. This section describes the computer's basic system, such as the computer's make and model, OS and service pack level, processors (except hyperthreaded processors), and amount of free memory.
  • Disk Information. This section provides data (e.g., model, interface type, size, primary and extended partitions) for all the hard disks laid out as physical disks.
  • Network Information. This section provides information about all the network cards. If a card is disabled or disconnected, it will indicate that status. If you run this script on a Windows 2000 computer, the script won't report the line speed or connection name.

Note that All_Information.vbs might take longer to run on systems with multiple partition configurations. When the script finishes running, a message box pops up indicating so. That way, you're not left guessing.

To use All_Information.vbs, all you need to do is run it on the computer for which you want the statistics. You can download the script by clicking the Download the Code Here button above. Although I wrote the script for use on our servers, it works on workstations as well.

As Listing 1 shows, All_Information.vbs uses Windows Management Information (WMI) to obtain the computer information. Thus, the computer on which you run the script must have WMI installed. In addition, you need to have Windows Script Host (WSH) 5.6 installed on the computer.

—Joshua Arzt

End of Article



Reader Comments

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...


Task Automation Whitepapers From Development to Production: Streamlining SharePoint Deployment with DocAve Deployment Manager

From Development to Production: Streamlining SharePoint Deployment with DocAve Deployment Manager

Related Events 7 Ways To Get More From Your SharePoint Deployment Now

Configuration Manager SP1 and R2 Overview

PCI Requirements for Windows and Active Directory: Straight from a Certified Auditor

Check out our list of Free Email Newsletters!

Task Automation eBooks Spam Fighting and Email Security for the 21st Century

A Guide to Windows Certification and Public Keys

Keeping Your Business Safe from Attack: Patch Management

Related Task Automation Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement