By William Jeffrey Rankin, Sat May 10 2025
This PowerShell script uses the systeminfo command to produce an HTML report (sample) containing system information. It also calculates the system's uptime. By default, only a subset of attributes from systeminfo are included in the report. To include more, simply modify the following line:
$attrs = 'System Model:', 'System Manufacturer:', 'OS Name:', 'OS Version:', 'System Boot Time:', 'Total Physical Memory:', 'Available Physical Memory:'
In the example below, the script generates a file called report.html
. If no output filename is specified, the script generates output.html
.
pwsh ./sysinfoweb.ps1 report.html
SysInfoWeb.zip, 1.7K