// Memory Bytes
tech

The Ultimate Windows 11 Cleanup Blueprint

A complete, no-nonsense guide to diagnosing and cleaning any Windows 11 PC — recover RAM, remove hidden bloatware, and dramatically improve responsiveness without buying new hardware.

18 min read

Windows 11 Cyberpunk OptimizationWindows 11 Cyberpunk Optimization

Why This Guide is Different

This is not another generic “clear temporary files” tutorial. This guide walks through a complete Windows 11 diagnostic and cleanup methodology designed to identify exactly what is slowing your system down, remove hidden resource hogs, and restore measurable performance improvements safely.

The Brutal Truth: Most PCs Are Slowly Suffocating

Modern Windows laptops rarely become slow overnight. Performance degradation usually happens gradually as you accumulate more startup applications, background services, telemetry collectors, update agents, and abandoned development tooling.

Eventually, the system reaches a tipping point where RAM availability collapses, SSD responsiveness degrades, and UI interactions begin stuttering. The result feels like “old hardware,” but in many cases, the real issue is simply software accumulation.

A Real Cleanup Example

MetricBeforeAfter
Available RAM0.02 GB24.73 GB
Used RAM31.61 GB6.91 GB
Free Disk Space76 GB114 GB
Background Processes180+110+
Startup Time2+ minutes~30 seconds
ResponsivenessFrequent freezingSmooth and fast

No hardware upgrades were required to achieve this—only systematic cleanup and optimization.

The Hidden Cost of 'Just Trying' Software

Most applications install far more than a desktop shortcut. They often add background services, scheduled tasks, telemetry collectors, and startup entries. One unused application is harmless, but dozens quickly become technical debt.


Part 1: Diagnose the System Before Changing Anything

Blind cleanup is risky. Before removing software, you must establish a baseline.

Step 1: Generate a Complete Diagnostic Report

Open PowerShell as Administrator (Right-click the Start button and select Terminal (Admin)), then run the following command:

$output = "$env:USERPROFILE\Desktop\PC_Diagnostic.txt"
 
$report = @()
$report += "============================================================"
$report += "🖥️  PC PERFORMANCE DIAGNOSTIC REPORT"
$report += "📅  Date: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')"
$report += "============================================================`n"
 
$report += "[1] SYSTEM SPECIFICATIONS"
$report += "------------------------------------------------------------"
$comp = Get-ComputerInfo -Property CsName, CsModel, CsProcessors, WindowsVersion
$report += "PC Name    : $($comp.CsName)"
$report += "Model      : $($comp.CsModel)"
$report += "Processor  : $($comp.CsProcessors)"
$report += "Windows OS : Version $($comp.WindowsVersion)`n"
 
$report += "[2] MEMORY (RAM) USAGE"
$report += "------------------------------------------------------------"
$ramTotal = (Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory / 1GB
$ramFree = (Get-CimInstance Win32_OperatingSystem).FreePhysicalMemory * 1024 / 1GB
$ramUsed = $ramTotal - $ramFree
$ramPercent = ($ramUsed / $ramTotal) * 100
 
$report += "Total RAM  : $([math]::Round($ramTotal,2)) GB"
$report += "Used RAM   : $([math]::Round($ramUsed,2)) GB ($([math]::Round($ramPercent,1))%)"
$report += "Free RAM   : $([math]::Round($ramFree,2)) GB`n"
 
$report += "[3] TOP 15 PROCESSES DRAINING RAM"
$report += "------------------------------------------------------------"
$processes = Get-Process | Sort-Object WorkingSet64 -Descending | Select-Object -First 15
$report += "{0,-35} {1,15}" -f "PROCESS NAME", "RAM USED (MB)"
$report += "{0,-35} {1,15}" -f "------------", "-------------"
foreach ($p in $processes) {
    $ramMB = [math]::Round($p.WorkingSet64 / 1MB, 2)
    $report += "{0,-35} {1,15}" -f $p.ProcessName, $ramMB
}
 
$report += "`n[4] STARTUP APPLICATIONS"
$report += "------------------------------------------------------------"
$startups = Get-CimInstance Win32_StartupCommand | Select-Object Name
foreach ($s in $startups) {
    $report += "- $($s.Name)"
}
 
$report += "`n============================================================"
$report += "End of Report."
 
$report | Out-File -FilePath $output -Encoding UTF8
 
Write-Host "✅ Diagnostic beautifully saved to: $output" -ForegroundColor Cyan
📊 What This Diagnostic Reveals

The generated report includes your system specifications, installed RAM capacity, available physical memory, the largest memory-consuming processes, and startup applications.

After execution, open PC_Diagnostic.txt from your desktop. If your available RAM is consistently below 4 GB while idle, your system is under significant memory pressure.


Step 2: Interpret the Results

Available RAMSystem HealthRecommended Action
< 2 GBCriticalImmediate cleanup
2–4 GBPoorInvestigate background software
4–8 GBModerateOptimization recommended
8–16 GBHealthyLight maintenance
> 16 GBExcellentMaintain current setup
Low SSD Space Causes Major Slowdowns

Windows performance degrades sharply when SSD free space drops below roughly 10–15%. Modern SSDs require unused space for virtual memory, wear leveling, temporary caching, and paging operations.


Part 2: Remove the Biggest Performance Killers

1. Local AI Models and AI Tooling

Modern AI tooling can quietly consume massive system resources. Common offenders include Ollama, LM Studio, GPT4All, and Stable Diffusion environments. A single 7B model can consume 4–5 GB of storage and 8–10 GB of RAM while active.

Check for Ollama

if (Get-Command ollama -ErrorAction SilentlyContinue) {
    ollama list
} else {
    "Ollama not installed"
}

Remove Ollama Models

ollama list | ForEach-Object {
    if ($_ -match "^\S+") {
        ollama rm $matches[0]
    }
}

If you no longer use it, uninstall it completely via Settings > Apps > Installed Apps.

AI Experiments Leave Heavy Footprints

Many AI applications continue running lightweight inference services even after the UI closes. If you are no longer actively using them, remove them entirely.


2. Docker Desktop

Docker Desktop continuously runs virtualization infrastructure. Its typical idle overhead includes 2–8 GB of RAM, WSL virtualization layers, and background networking services.

Check Docker Services

Get-Service -Name "com.docker*" -ErrorAction SilentlyContinue

Remove Docker Desktop

Get-Package -Name "*Docker*" | Uninstall-Package -Force
Developers Should Disable Startup Instead

If Docker is still required for development work, simply disable its automatic startup. Launch Docker manually only when needed and avoid keeping containers running permanently.


3. Multiple Python Installations

Developers frequently accumulate multiple Python versions (3.8 through 3.13). This increases disk usage, PATH complexity, environment conflicts, and overall maintenance overhead.

List Installed Versions

Get-Package -Name "Python*" | Select-Object Name, Version

Keep only your active project versions and current stable releases.


4. Forgotten Database Services

Database systems like PostgreSQL, MongoDB, Redis, and MySQL often continue running indefinitely in the background.

Check Active Database Services

Get-Service |
Where-Object {
    $_.Name -match "postgres|mongo|mysql|redis"
} |
Select-Object Name, Status

Disable Unnecessary Services

Stop-Service -Name "MongoDB" -Force
Set-Service -Name "MongoDB" -StartupType Disabled
🛠️ Why Database Services Hurt Laptop Performance

Database services are designed for servers. On laptops, they continuously reserve memory, keep background threads active, and perform indexing—increasing idle CPU activity. If you are not actively developing against them, disable them.


5. Manufacturer Bloatware

Many OEM laptops ship with unnecessary utility layers like HP Support, Dell SupportAssist, Lenovo Vantage, or ASUS telemetry suites. These applications frequently consume RAM continuously, launch background services, and generate telemetry traffic.

Example Cleanup Commands

Get-Package -Name "*HP Notifications*" | Uninstall-Package -Force
Get-Package -Name "*HP Connection Optimizer*" | Uninstall-Package -Force
Get-Package -Name "*HP Insights*" | Uninstall-Package -Force
Most OEM Utilities Are Optional

These applications are usually convenience layers rather than essential hardware drivers. Removing them generally improves responsiveness safely.


Part 3: A Safer Windows 11 Cleanup Script

Create a file named Cleanup.ps1, right-click it, and select Run with PowerShell:

# ============================================================
# Windows 11 Performance Cleanup Script
# Safe cleanup utility
# ============================================================
 
Write-Host "========================================================" -ForegroundColor Cyan
Write-Host "     Windows 11 Performance Cleanup" -ForegroundColor Cyan
Write-Host "========================================================" -ForegroundColor Cyan
 
# 1. Disable OneDrive startup
Write-Host "[1/5] Disabling OneDrive startup..." -ForegroundColor Yellow
 
Remove-ItemProperty `
  -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" `
  -Name "OneDrive" `
  -ErrorAction SilentlyContinue
 
Write-Host "   ✓ OneDrive disabled from startup" -ForegroundColor Green
 
# 2. Remove Widgets
Write-Host "[2/5] Removing Windows Widgets..." -ForegroundColor Yellow
 
Get-AppxPackage *WebExperience* |
Remove-AppxPackage -ErrorAction SilentlyContinue
 
Write-Host "   ✓ Widgets removed" -ForegroundColor Green
 
# 3. Remove Xbox overlay
Write-Host "[3/5] Removing Xbox overlay..." -ForegroundColor Yellow
 
Get-AppxPackage *XboxGamingOverlay* |
Remove-AppxPackage -ErrorAction SilentlyContinue
 
Write-Host "   ✓ Xbox overlay removed" -ForegroundColor Green
 
# 4. Clean temporary files
Write-Host "[4/5] Cleaning temporary files..." -ForegroundColor Yellow
 
Remove-Item "$env:TEMP\*" `
  -Recurse `
  -Force `
  -ErrorAction SilentlyContinue
 
Write-Host "   ✓ Temp files cleaned" -ForegroundColor Green
 
# 5. Disable CrossDeviceService
Write-Host "[5/5] Disabling CrossDeviceService..." -ForegroundColor Yellow
 
Stop-Service `
  -Name "CrossDeviceService" `
  -Force `
  -ErrorAction SilentlyContinue
 
Set-Service `
  -Name "CrossDeviceService" `
  -StartupType Disabled `
  -ErrorAction SilentlyContinue
 
Write-Host "   ✓ CrossDeviceService disabled" -ForegroundColor Green
 
Write-Host "========================================================" -ForegroundColor Green
Write-Host "[✓] Cleanup complete! Restart your PC now." -ForegroundColor Green
Write-Host "========================================================" -ForegroundColor Green
What This Script Does NOT Do
  • ❌ Delete personal files
  • ❌ Remove drivers
  • ❌ Break Windows Update
  • ❌ Modify critical system components
  • ❌ Install additional software

What You Should NEVER Remove

Avoid Breaking Windows

Do not uninstall GPU drivers, Wi-Fi drivers, Bluetooth drivers, Audio drivers, Microsoft Visual C++ Redistributables, .NET Runtime packages, or Chipset drivers.

These components are shared dependencies required by Windows and many applications. Removing them often creates instability rather than improving performance.


Part 4: High-Impact Manual Optimizations

Disable Startup Applications

Press Ctrl + Shift + Esc to open Task Manager, navigate to the Startup tab, and disable applications not required immediately after boot (e.g., Microsoft Teams, Zoom, Spotify, Adobe updaters, and Cloud sync clients).

The Startup Trap

Every startup application increases boot time, memory usage, background CPU activity, and disk operations. Most users auto-launch far more software than they actually use daily.


Adjust Visual Effects for Performance

Press Win + R, type sysdm.cpl, and navigate to Advanced > Performance Settings. Select Adjust for best performance.

🖼️ What You Lose vs What You Gain
Visual Feature RemovedPerformance Benefit
Window animationsFaster UI rendering
Transparency effectsLower GPU usage
Menu fadingFaster interactions
Thumbnail previewsReduced memory usage

The interface becomes visually simpler but significantly more responsive on lower-power systems.


Remove Unused Browser Extensions

Browser extensions frequently consume 50–300 MB of RAM each, alongside background CPU cycles and continuous network activity. Common offenders include coupon extensions, grammar assistants, video downloaders, shopping trackers, and multiple ad blockers. If an extension hasn't been used recently, remove it.


Part 5: Long-Term Maintenance Strategy

Weekly: Restart your PC fully, close unused browser tabs, and check for runaway applications. Monthly: Run the diagnostic script again, remove unused software, and audit your startup applications. Quarterly: Review SSD free space, update your drivers and Windows OS, and re-run the cleanup procedures.

Restarting Matters

Windows Fast Startup does not fully clear memory state during shutdown. A full restart performs a cleaner reset and helps eliminate lingering memory pressure.


Common Cleanup Mistakes

MistakeWhy It’s Dangerous
Disabling random Windows servicesCan break networking or updates
Installing “RAM optimizer” appsOften creates more background overhead
Registry cleaning obsessionRarely improves performance meaningfully
Deleting driver packages blindlyCan destabilize the system
Using aggressive debloat scriptsMay remove critical Windows components
⚠️ Why Registry Cleaners Rarely Help

Modern Windows versions are highly tolerant of registry size. Removing a few unused keys almost never produces measurable performance improvements. The real bottlenecks are usually background services, startup applications, and memory pressure.


Final Thoughts

Most slow PCs are not failing because of weak hardware; they are suffering from years of accumulated software entropy. Modern Windows systems are usually powerful enough for everyday workloads—but only if unnecessary background complexity is removed systematically.

Performance optimization is rarely about one magical tweak. It is about reducing unnecessary software layers consistently and intentionally. When done correctly, the difference becomes immediately noticeable.


📚 IELTS Goldmine: Words & Phrases

Word/PhraseMeaning (in English)Example from this post
SuffocatingBeing overwhelmed or restricted"Most PCs are slowly suffocating under background software."
CulpritThe true cause of a problem"The real culprit is software accumulation."
BloatwareUnnecessary pre-installed software"Manufacturer bloatware frequently consumes memory continuously."
TelemetryAutomatic system data collection"Some utilities constantly collect telemetry."
EntropyGradual disorder or degradation"Systems degrade because of software entropy."
TangibleClearly noticeable or measurable"The improvements become immediately tangible."
MitigateTo reduce severity"Disabling startup applications mitigates memory pressure."
IncrementalStep-by-step gradual improvement"Optimization is usually incremental."
ThresholdA critical limit or boundary"Below the RAM threshold, responsiveness collapses."
Resource hogSoftware consuming excessive resources"Docker can become a resource hog on low-memory laptops."