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 V3.28
?
Retrieving System Information. Please wait. .
Name
:
Make
:
Model
:
Serial No
:
BIOS date
:
BIOS version
:
CPU name
:
CPU sockets
:
CPU cores
:
CPU load
:
RAM
:
RAM in use
:
Windows version
:
Product key
:
Embedded key
:
Windows status
:
Windows installed
:
Windows updated
:
Windows uptime
:
Defender updated
:
Microsoft Office
:
Graphics card
:
Graphics memory
:
Display resolution
:
Display 1
:
Display 2
:
Display 3
:
Display 4
:
Display 5
:
Network adaptor
:
Network driver ver
:
Network MAC
:
Network IP
:
Subnet
:
Gateway
:
DNS
:
Hard disk 0
:
Hard disk 1
:
Hard disk 2
:
Hard disk 3
:
Hard disk 4
:
Hard disk 5
:
Hard disk 6
:
Hard disk 7
:
Hard disk 8
:
Hard disk 9
:
C: drive
:
D: drive
:
E: drive
:
F: drive
:
G: drive
:
H: drive
:
I: drive
:
J: drive
:
K: drive
:
L: drive
:
M: drive
:
N: drive
:
O: drive
:
P: drive
:
Q: drive
:
R: drive
:
S: drive
:
T: drive
:
U: drive
:
V: drive
:
W: drive
:
X: drive
:
Y: drive
:
Z: drive
:
Printers
:
JavaScript Notice:
Either your browser does not support JavaScript or JavaScript has been disabled on your browser.
This site is interactive and requires JavaScript to pre-process your selections and transmit them to our web server.
To enable JavaScript in Microsoft Internet Explorer choose
Tools
from the menubar, then
Internet Options
, then
Security
. The
Default level
of security (medium / medium-high) enables JavaScript. In Internet Explorer 7 to 11 you may have to press the
Alt
key to display the menubar.
JavaScript is always enabled in Firefox unless you enter
about:config
in the address bar and make ill advised low level changes.
To enable JavaScript in Google Chrome, click on the 3 horizontal bars at the top right of the browser, then choose
Settings
, click on the
Show advanced settings
link at the bottom, click on the
Content settings
button, select
Allow all sites to run JavaScript (recommended)
.
Your browser has identified itself as AppleWebKit 537.3. You will have to check on line for advice on enabling JavaScript.
Home
Database
Browser
Desktop
Graphing
DHTML
Scripting
Tree
Shop
QCI
Contact us
Privacy
© 2003-2024 Eniware Pty. Limited ABN 11 004 002 359