Scripting
 
On Windows based computers there is a lot of information that can be retrieved about installed hardware using Windows Management Instrumentation (WMI).

A script to do this is available for download here. It is called Info.hta and an example of the output is shown on the right (scaled). While most information is retrieved at load time, some information such as CPU load is monitored continuously.

When downloading you may get a warning like below that this type of file can harm your computer.

This HTA file extensively uses VBScript and WMI calls. HTA files (like any program you download from the Internet) can be used to make changes to your computer or report back information to a third-party or to spy on you, hence the warning. This HTA does not make any changes to your computer, does not spy or report, it only displays the information on the screen. As the HTA is in plain text (unlike most programs you download from the Internet) you can open it using a text editor such as Notepad to view the source and to confirm that it is safe. If you do get a download warning then select Keep.

After you download info.hta just double-click on the file to run it on your own computer. You may get a warning that the publisher could not be verified. You can remove this warning by first right-clicking on the file, selecting properties and then clicking on the Unblock button or Unblock check-box then clicking on OK.

If you don't want to download the HTA file you can view the source by clicking here then copy that and save it. It may not be the prettiest code, but it works. It is a handy tool that does not need any installation and can be run from a USB drive. It can be used as is or as a resource for VBScript examples. This collection of scripts works on Windows XP to Windows 11, with limited functionality on earlier versions of Windows. While this is my compilation, many of the functions have been gleaned from examples found on the Internet. Dates are in DD/MM/YYYY format but you can modify the code to suit. The current version of Info.hta is 3.28 dated 12-Apr-2022. If you have any suggestions or improvements or find any errors then contact me.

System Information
© 2003-2024 Eniware Pty. Limited   ABN 11 004 002 359