(view source code of showcpuh.ps as plain text)
write-host
write-host "ShowCpuH.ps1, Version 1.00"
write-host "Show CPU details in HTML"
write-host "Written by Rob van der Woude"
write-host "http://www.robvanderwoude.com"
write-host
get-wmiobject -class Win32_Processor | convertto-html DeviceID,Name,CurrentClockSpeed,LoadPercentage -head "<title>CPU details for $env:computername</title>`n<style type=`"text/css`">`nbody { padding: 8px; line-height: 1.33 }`ntable { border-style: ridge }`ntd, th { padding: 10px; border-style: dotted; border-width: 1px }`nth { font-weight: bolder; text-align: center }`n</style>" | out-file -FilePath "showcpuh.html" -Encoding "ASCII"
invoke-item "showcpuh.html"
page last modified: 2024-04-16; loaded in 0.0070 seconds