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 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 browser 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 ) |
|||
/NOSCORES |
Do not display Windows System Assessment Tool (WinSAT) scores | |||
/NOUPD |
Skip check for updates at startup | |||
/THEME:theme |
Change the window background and text colors; theme can be BW (Black and White, default), Blue , Dark , Red or Custom (the latter requires /CUSTOMCOLORS:customcolors ) |
|||
/USBSTOR |
Include USB drives in the harddisks list | |||
/VIRTUAL |
Include virtual 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 ) |
|||
/ZOOM:zoomfactor |
Zoom factor in percents for content of this window (50..250; default 100) | |||
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: /DMIDecode /DxDiag /KeepXML /USBStor |
|||
If the program detects that it runs in a WinPE environment, neither DxDiag nor DMIDecode can be used. In that case, the switches /DMIDecode , /DxDiag , /KeepXML and /XML will all be ignored.The switch /NOADMIN will not be required in a WinPE environment, as the program will have admin privileges by default in WinPE.Note that WMI results in a WinPE environment WMI may be different from the ones returned in a "normal" Windows environment. |
||||
Examples: | HARDWARE.HTA /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+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 | |||
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 https://www.robvanderwoude.com/donate.php
Your support is highly appreciated.
BusType
property of the MSFT_PhysicalDisk
class in WMI's root/Microsoft/Windows/Storage
namespace to check the interface type; though much more reliable than Win32_DiskDrive
's InterfaceType
in WMI's root/CIMV2
namespace, it may still make mistakes./DXDIAG
command line switch and all its dependent switches will be ignored.winsat.exe formal
once (and again after major hardware changes) to build the WinSAT scores database for your computer.root/WMI
namespace.
If you run this HTA without elevated privileges, you may miss some details, i.e. keyboard, mouse and monitors.
Basic Hardware Inventory, Version 9.03
© 2005 - 2024, Rob van der Woude
https://www.robvanderwoude.com/hardware.php
page last modified: 2024-09-26; loaded in 0.0019 seconds