Here's a comprehensive PowerShell-based approach to diagnose your system:
Check GPU Usage and Processes
# Check GPU utilization
Get-Counter "\GPU Engine(*)\Utilization Percentage" -SampleInterval 2 -MaxSamples 5
# List processes using GPU
Get-Process | Where-Object {$_.ProcessName -match "nvidia|amd|intel"} | Select-Object Name, CPU, WorkingSet, Id
# Check running processes by CPU/Memory usage
Get-Process | Sort-Object CPU -Descending | Select-Object -First 20 Name, CPU, WorkingSet, Id
Network Activity Analysis
# Check active network connections
Get-NetTCPConnection | Where-Object State -eq "Established" | Select-Object LocalAddress, LocalPort, RemoteAddress, RemotePort, OwningProcess
# Get process names for network connections
Get-NetTCPConnection | Where-Object State -eq "Established" | ForEach-Object {
$proc = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[PSCustomObject]@{
ProcessName = $proc.ProcessName
PID = $_.OwningProcess
LocalPort = $_.LocalPort
RemoteAddress = $_.RemoteAddress
RemotePort = $_.RemotePort
}
}
# Check network usage by process
Get-Counter "\Process(*)\IO Data Bytes/sec" | Select-Object -ExpandProperty CounterSamples | Sort-Object CookedValue -Descending | Select-Object -First 10
System Performance Monitoring
# CPU usage by process
Get-Counter "\Process(*)\% Processor Time" -SampleInterval 2 -MaxSamples 3
# Memory usage
Get-Counter "\Memory\Available MBytes"
Get-Counter "\Memory\% Committed Bytes In Use"
# Disk activity
Get-Counter "\PhysicalDisk(*)\% Disk Time" -SampleInterval 2 -MaxSamples 3
Check for Suspicious Services and Startup Items
# List all running services
Get-Service | Where-Object Status -eq "Running" | Sort-Object Name
# Check startup programs
Get-CimInstance Win32_StartupCommand | Select-Object Name, Command, Location
# Check scheduled tasks (look for unusual ones)
Get-ScheduledTask | Where-Object State -eq "Ready" | Select-Object TaskName, TaskPath, State
Hardware Health Check
# CPU temperature and info
Get-CimInstance -ClassName Win32_Processor | Select-Object Name, CurrentClockSpeed, MaxClockSpeed, LoadPercentage
# GPU information
Get-CimInstance -ClassName Win32_VideoController | Select-Object Name, DriverVersion, AdapterRAM
# System temperatures (if available)
Get-CimInstance -ClassName MSAcpi_ThermalZoneTemperature -Namespace "root/wmi" | Select-Object InstanceName, CurrentTemperature
# Check system events for hardware issues
Get-WinEvent -FilterHashtable @{LogName='System'; Level=1,2,3} -MaxEvents 50 | Select-Object TimeCreated, Id, LevelDisplayName, Message
Security Checks
# Check Windows Defender status
Get-MpComputerStatus
# Recent threat detections
Get-MpThreatDetection | Select-Object -First 10
# Check for unusual user accounts
Get-LocalUser | Select-Object Name, Enabled, LastLogon, PasswordRequired
# Look for suspicious executables in temp folders
Get-ChildItem -Path $env:TEMP -Recurse -Include "*.exe" -ErrorAction SilentlyContinue
Get-ChildItem -Path "C:\Windows\Temp" -Recurse -Include "*.exe" -ErrorAction SilentlyContinue
Process Deep Dive
# Get detailed info on high-resource processes
$suspiciousProcesses = Get-Process | Sort-Object CPU -Descending | Select-Object -First 10
foreach ($proc in $suspiciousProcesses) {
Get-Process -Id $proc.Id | Select-Object ProcessName, Id, Path, StartTime, CPU, WorkingSet
}
# Check process file locations and digital signatures
Get-Process | ForEach-Object {
try {
$sig = Get-AuthenticodeSignature $_.Path
[PSCustomObject]@{
ProcessName = $_.ProcessName
Path = $_.Path
SignatureStatus = $sig.Status
SignerCertificate = $sig.SignerCertificate.Subject
}
} catch {
# Skip processes without accessible paths
}
} | Where-Object SignatureStatus -ne "Valid"
Additional Built-in Tools
Run these commands in Command Prompt or PowerShell:
# System file integrity check
sfc /scannow
# Check disk for errors
chkdsk C: /f /r
# Windows Memory Diagnostic (requires restart)
mdsched.exe
# Performance monitoring
perfmon.exe
# Resource Monitor for real-time GPU monitoring
resmon.exe
Quick Mining Detection
# Look for common mining software processes
$miningProcesses = @("xmrig", "phoenix", "t-rex", "lolminer", "gminer", "nbminer", "claymore")
Get-Process | Where-Object {$miningProcesses -contains $_.ProcessName.ToLower()}
# Check for mining-related network connections (common pools)
Get-NetTCPConnection | Where-Object {$_.RemoteAddress -match "(pool|mining|crypto)" -or $_.RemotePort -in @(4444, 3333, 8888, 9999)}
Start with the GPU and process monitoring commands to identify what's consuming resources, then use the network analysis to check for suspicious connections. The hardware health checks will tell you if the increased load is causing thermal issues.