Skip to content
NoticeWelcome to Osteup! Practical tools and optimization tweaks shared freely.
Osteup LogoOsteup

Essential CMD & PowerShell Commands to Boost Windows 10/11 Performance

YYurayuraa
··2 min read·0 views
WindowsFix Lag
Tong Hop Code CMD Tang Hieu Suat May Tinh Windows 10 11

Rather than relying on sketchy third-party cleanup utilities or registry cleaners that introduce bloatware risks, Windows 10 and Windows 11 already feature built-in administrative tools via Command Prompt (CMD) and PowerShell. Directly interacting with system-level commands grants you precise hardware control: lower input latency, disable CPU-heavy RAM compression, and reclaim gigabytes of storage space.

Windows Command Prompt interface for executing system performance commands
Key Takeaways
  • Zero Third-Party Software: Utilizes 100% native Microsoft command-line utilities for uncompromising system stability.
  • Control Memory Compression: Disabling RAM compression on rigs with 16GB+ RAM frees CPU cycles from constant background decompression.
  • Unlock Ultimate Performance: Reveals Microsoft's hidden power plan designed for workstations and low-latency gaming.
  • Drive Cleanup & Latency Reduction: Disabling hibernation instantly recovers 8–32 GB on Drive C, while TCP tuning smooths online packet flow.

1. Managing Windows Memory Compression (MMAgent)

By default in Windows 10 and 11, the memory management subsystem MMAgent enables Memory Compression. This feature trades CPU processing cycles to compress inactive RAM pages, delaying memory paging to your disk drive.

This introduces an important performance tradeoff:

  • Systems with limited RAM (< 8 GB): Compression prevents memory overflow crashes.
  • Gaming setups or multi-core PCs with 16GB+ RAM: The processor constantly spends clock cycles compressing and decompressing pages during runtime, frequently producing subtle micro-stutters in latency-sensitive competitive titles.
PowerShell Command Function & Performance Impact Recommended Usage
Get-MMAgent Displays current memory compression status (MemoryCompression: True/False). Diagnostic check for all users.
Disable-MMAgent -mc Disables background RAM compression; frees CPU cycles and reduces frametime variance. Recommended for systems with 16GB+ RAM and dedicated gaming PCs.
Enable-MMAgent -mc Restores memory compression to default Windows behavior. Office laptops or low-RAM configurations (4GB–8GB).

2. Essential Windows Performance CMD Commands

Command (Admin Prompt) Optimization Category Practical Benefit
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 Power Delivery Unlocks the hidden Ultimate Performance plan, preventing CPU core downclocking during game loads.
powercfg -h off Storage Optimization Disables hibernation, deletes hiberfil.sys, and instantly frees 8GB to 32GB of SSD space.
netsh int tcp set global autotuninglevel=normal Network Throughput Enables dynamic TCP window tuning to optimize download stability and lower network packet jitter.
netsh int tcp set global chimney=disabled Network Stability Disables deprecated TCP Chimney Offload on modern network adapters to resolve sudden packet dropouts.
fsutil behavior set DisableLastAccess 1 Storage I/O Halts disk timestamp updates every time a file is accessed, eliminating thousands of unnecessary I/O writes.
sfc /scannow System Maintenance Scans and repairs corrupted or missing Windows operating system files automatically.

3. Key Advantages & Operational Notes

Verified Benefits Important Considerations
No background bloatware or telemetry from third-party "booster" applications. System-level commands must be executed within an elevated terminal (Run as administrator).
Noticeable reduction in mouse and keyboard input latency in first-person shooters (CS2, Valorant). Disabling hibernation (powercfg -h off) also turns off Fast Startup, ensuring clean cold reboots.
Freeing large SSD capacity preserves maximum sustained NVMe read/write transfer rates. If your rig only has 4GB–8GB of RAM, keep MemoryCompression active to avoid out-of-memory errors.

4. Official Command Batch Script Download

System Performance Script

Windows Performance Commands Pack

File Size:3 KB
Supported OS:Windows 10 / Windows 11 (64-bit)
File Name:Windows_Performance_CMD_Osteup.bat
Release Date:19/10/2026

High-speed mirror download: MediaFire Mirror Link→

5. Step-by-Step Execution Guide

  1. Open Command Prompt or PowerShell as Administrator: Press Windows + S, type cmd (or powershell). Right-click the application icon and select Run as administrator.
  2. Inspect and Disable RAM Compression (via PowerShell): Run the following command to turn off Memory Compression: Disable-MMAgent -mc
  3. Apply Storage Cleanup & Performance Unlocks (via CMD): Paste the following batch of commands into your Admin CMD: powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 powercfg -h off fsutil behavior set DisableLastAccess 1
  4. Select the New Power Plan: Navigate to Control Panel > Power Options, locate the newly added Ultimate Performance plan, and activate it.
  5. Restart Your Computer: Perform a system restart to allow the Windows kernel and storage subsystems to finalize all changes.
Checking and disabling Memory Compression using PowerShell
Restoration Commands: To re-enable memory compression and hibernation at any time, run Enable-MMAgent -mc in PowerShell Admin and powercfg -h on in CMD Admin.

6. Frequently Asked Questions (FAQ)

Will executing these CMD tweaks cause blue screens (BSOD) or stability issues?

No. Every command listed uses native, fully documented Microsoft operating system utilities (powercfg, fsutil, MMAgent). No third-party drivers or binary modifications are introduced.

Does disabling hibernation negatively affect system shutdowns?

Not at all. Your computer will execute a standard Full Shutdown instead of saving partial memory states to disk. This clears operating system cache build-up and maintains fresh boot performance.

How can I verify that Ultimate Performance is active?

Open Task Manager, switch to the Performance > CPU tab. You will observe your processor consistently holding at or above its base clock speed without dipping during gaming transitions.

Was this article helpful?

Related Articles

Comments(2)

Quân
Quân10/12/2024

ko dùng được