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 {

View File

@@ -62,13 +62,16 @@ pwsh.exe -File .\Get-SystemSecurityAndHardwareInfo.ps1 -OutputFile report.txt
- Download and run directly from a raw GitHub URL (only if you trust the URL):
```powershell
iwr -UseBasicParsing "https://git.smartcraft.me/Smartcraft-Media-Tech/System-Info/raw/branch/master/System%20Info%20%28ps1%29/Get-SystemSecurityAndHardwareInfo.ps1" | iex
# Fetch and execute under pwsh (PowerShell 7+) so full CPU detection works:
iwr -UseBasicParsing "https://git.smartcraft.me/Smartcraft-Media-Tech/System-Info/raw/branch/master/System%20Info%20%28ps1%29/Get-SystemSecurityAndHardwareInfo.ps1" | & pwsh -Command -
```
Security note: `iwr | iex` downloads and immediately executes code from the given URL. Only run such commands for sources you fully trust. A safer approach is to download the file, inspect it, then execute it locally:
```powershell
# Safer: download, inspect, then run under pwsh
iwr -OutFile .\Get-SystemSecurityAndHardwareInfo.ps1 "https://git.smartcraft.me/Smartcraft-Media-Tech/System-Info/raw/branch/master/System%20Info%20%28ps1%29/Get-SystemSecurityAndHardwareInfo.ps1"
# Inspect the file, then run:
pwsh.exe -File .\Get-SystemSecurityAndHardwareInfo.ps1 -OutputFile my_report.txt
```
version 1.0.0

View File

@@ -1,15 +0,0 @@
System Hardware & Security Report - 2025-10-14 23:24:30Z
TPM Installed: True
TPM Enabled/Activated: True
Secure Boot Enabled: False
Installed RAM: 31.83 GB (34,176,880,640 bytes)
CPU: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
CPU Manufacturer: GenuineIntel
CPU Cores: 6 Logical Processors: 12 MaxClockMHz: 4104
CPU Instruction Sets: SSE, SSE2, SSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, BMI1, BMI2
Main Drive (C:) Size: 476.03 GB (511,128,338,432 bytes) Free: 87.17 GB