sync with minster586

This commit is contained in:
minster586
2025-10-15 02:03:14 -04:00
parent 28754441df
commit 092ac3631a
3 changed files with 14 additions and 17 deletions

View File

@@ -8,6 +8,15 @@ param(
[string]$OutputFile
)
# Note about host: If this script is run under Windows PowerShell (5.1) some advanced detection
# (CPU intrinsics via System.Runtime.Intrinsics) will be unavailable. If you want a single
# copy-paste one-liner that automatically runs the script under pwsh (PowerShell 7+) use the
# following pattern (recommended when piping from the web):
#
# iwr -UseBasicParsing "https://git.smartcraft.me/Smartcraft-Media-Tech/System-Info/raw/branch/master/System%20Info%20%28ps1%29/Get-SystemSecurityAndHardwareInfo.ps1" | & pwsh -Command -
#
# This will fetch the script and execute it under pwsh so instruction-set detection works.
function Get-TPMStatus {
# Try CIM first (Windows 10/11)
try {