Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
Redmond desk1 min

Windows 11 Memory Compression: PowerShell Commands to Know

Enable or disable memory compression with an MMAgent PowerShell command, then use Get-MMAgent to check the reported state.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use the built-in PowerShell commands Enable-MMAgent -MemoryCompression to enable memory compression or Disable-MMAgent -MemoryCompression to disable it. Then run Get-MMAgent and check the MemoryCompression value. Microsoft’s cited references are shown in the Windows Server 2025 documentation view rather than a Windows 11-specific view, so their guidance is not explicitly scoped to Windows 11.

Enable memory compression in PowerShell

  1. Open PowerShell with administrator privileges. This is a practical precaution; the cited Microsoft command references do not specify an elevation requirement.

    As an Amazon Associate I earn from qualifying purchases.

  2. Run:

    Enable-MMAgent -MemoryCompression

    The documented short alias for -MemoryCompression is -mc, so Enable-MMAgent -mc is equivalent. Use only this switch to target memory compression rather than changing other MMAgent features. Microsoft Learn: Enable-MMAgent

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Disable memory compression

In the same PowerShell session, run:

Disable-MMAgent -MemoryCompression

You can use the documented alias instead: Disable-MMAgent -mc. As with the enable command, include only the memory-compression switch. Microsoft Learn: Disable-MMAgent

Check whether it is reported as enabled

Run:

Get-MMAgent

Inspect the MemoryCompression entry in the output to see the state reported by MMAgent. Microsoft describes this command as returning MMAgent feature state. Microsoft Learn: Get-MMAgent

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What the commands do—and what the documentation does not establish

Enable-MMAgent and Disable-MMAgent manage MMAgent features through their switches. Keep the command limited to -MemoryCompression (or its -mc alias) if your goal is to change memory compression alone; other MMAgent options control different features. The MMAgent module index lists these commands.

Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.