Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

August 11, 2006 12:00 AM

Obtain Computer Information in an Easy-to-Read Format

Windows IT Pro
InstantDoc ID #92855
Rating: (0)
Downloads
92855.zip

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

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.