Rob van der Woude's Scripting Pages

Basic Hardware Inventory

Version 6.13

 

Basic Hardware Inventory, Version 6.13

Get a basic hardware inventory of any WMI enabled computer on the network

Usage:   HARDWARE.HTA [ options ] [ switches ]
 
Options:   These parameters can be set in the configuration file as well as on the command line (in case of conflicts, command line options prevail)
  /CHAIN   Experimental: In details windows, if a property value consists of an array of (character) numbers, show the array as well as the interpreted text; e.g.
PropertyValue (array) : 83,121,110,99,77,97,115,116,101,114,0,0,0
PropertyValue (string): SyncMaster

Note that not all arrays of numbers are intended to be interpreted as text, so the string may sometimes be "jiberish". For this reason, property names containing "Capability" or "Characteristic" (or their plural forms) are excluded, as they consist of arrays of numbers not representing text.
  /CM   Display monitor dimensions in centimeters instead of diagonal in inches (only in Windows Vista and later)
  /CUSTOMCOLORS:gradienttop;gradientbottom;captions;links;buttonface;buttontext;commands
  Set colors for the background gradient top and bottom, body text, links, button faces, button text, and this help screen's command code (valid with /THEME:Custom only); for valid colors, check the dropdowns in the Settings screen or visit W3Schools' list of HTML colors
  /DEBUG   Debug mode: list settings during startup process in a separate Internet Explorer window
  /DMIDECODE   Use DMIDecode.exe to retrieve DMI/SMBIOS details (more information than WMI for memory, but requires third party software, and gathers information for local computer only)
  /DXDIAG   Use DxDiag.exe to retrieve sound devices, video controllers and system data (more reliable than WMI for video and sound, but slow, and gathers information for local computer only)
  /KEEPXML   Reuse existing DxDiag data saved in XML, if it exists, and do not delete the XML file when terminating the program (requires /DXDIAG)
  /LOG   Save Debug window contents to a logfile named "Hardware_debug_YYYYMMDDHHmmss.log" (requires Debug mode)
  /NOUPD   Skip check for updates at startup
  /NOSCORES   Do not display Windows System Assessment Tool (WinSAT) scores
  /SIZE:WxH   Center window and resize to W x H pixels
  /THEME:theme   Change the window background and text colors; theme can be BW (Black and White), Custom (requires /CUSTOMCOLORS:customcolors), or Default
  /USBSTOR   Include USB drives in the harddisks list
  /XML:xmlfile   Location where DxDiag results will be stored; if xmlfile is not specified, "Hardware.xml" in the current directory will be used (requires /DXDIAG and /KEEPXML)
 
Switches:   These parameters can be set on the command line only
  /? or /HELP   Show this message
  /BASIC   Very basic inventory (CPU, memory, HDD)
  /COMPUTER:computername   Specify computer to be queried (starts inventory immediately)
  /COPY   Copy results to clipboard and close program (starts inventory immediately, and terminates program when results are copied)
  /NOADMIN   Skip the test for elevated privileges, just assume privileges are sufficient
  /PRINT   Print the results to the default printer (starts inventory immediately, and terminates program when results are printed)
  /SAVE:filename   Save tab delimited results; if filename is not specified or equals "*", "Hardware.computername.timestamp.txt" in the HTA's parent folder will be used; if filename is a folder followed by "\*", "Hardware.computername.timestamp.txt" in the specified folder will be used (starts inventory immediately, and terminates program if and when results are written to file)
 
Notes:   At startup, the program looks for a file named "Hardware.cfg" in its working directory. If it finds it, it will apply its settings first.
Next, the command line settings are applied. In case of conflicts, the command line parameters will prevail.
Use the "Settings" button to create or edit "Hardware.cfg".
"Hardware.cfg" might look like this:
/DxDiag /KeepXML /USBStor
 
Examples:   HARDWARE.HTA /Size:1024x768 /DxDiag /KeepXML /USBStor
 
  HARDWARE.HTA /NoUpd /DxDiag /Save:%ComputerName%_Full_Inventory.txt
 
  HARDWARE.HTA /NoUpd /Basic /Computer:REMOTEPC /Save:REMOTEPC_Basic_Inventory.txt
 
Keyboard:   Besides Windows' standard "global" keyboard shortcuts, this HTA supports the following keyboard shortcuts:
 
    F1   Help
    Backspace   Back to Main window (only when in Help or Credits window)
    Esc   Back to Main window (only when in Settings, Help or Credits window)
    Alt+B   Select Basic inventory
    Alt+C   Credits
    Alt+D   Toggle Debug mode on/off (best started with /DEBUG command line switch)
    Alt+E   Edit the configuration file (in Settings screen only)
    Alt+F   Select Full inventory
    Alt+G   Go (start the inventory)
    Alt+N   Minimize the HTA (main) window
    Alt+P   Print Preview (output in black and white)
    Alt+R   Reset (only after running the inventory)
    Alt+S   Settings
    Alt+W   Add current Window size and position to the Debug output window (Internet Explorer)
    Alt+X   Maximize the HTA (main) window
    Ctrl+P   Print (output in the HTA's screen colors)

 

If you like this program, why not show your appreciation by making a donation?

Click or navigate to http://www.robvanderwoude.com/donate.php

Your support is highly appreciated.

 

Known Issues

 

Basic Hardware Inventory,  Version 6.13
© 2005 - 2016, Rob van der Woude
http://www.robvanderwoude.com/hardware.php


page last uploaded: 2016-09-19, 14:57