951 B
951 B
| name | description |
|---|---|
| system-status | Reports current CPU, Memory, and Disk usage on Windows. |
Procedure
- Run the PowerShell command:
Get-CimInstance Win32_OperatingSystem | Select-Object @{Name='FreeGB';Expression={[math]::round($_.FreePhysicalMemory/1MB,2)}}, @{Name='TotalGB';Expression={[math]::round($_.TotalVisibleMemorySize/1MB,2)}} - Run the PowerShell command:
Get-CimInstance Win32_Processor | Select-Object LoadPercentage - Run the PowerShell command:
Get-CimInstance Win32_LogicalDisk | Where-Object { $_.DeviceID -eq 'C:' } | Select-Object @{Name='FreeGB';Expression={[math]::round($_.FreeSpace/1GB,2)}}, @{Name='TotalGB';Expression={[math]::round($_.Size/1GB,2)}} - Display a clean summary table showing:
- CPU Usage: [LoadPercentage]%
- Memory: [UsedGB] / [TotalGB] GB
- Disk (C:): [FreeGB] GB Free of [TotalGB] GB
- If CPU > 80% or Memory < 1GB, add a warning: "⚠️ System is under heavy load!"