How to Enable or Disable Memory Compression in Windows 11

Kingston FURY Beast DDR4 RGB Special Edition Memory in a gaming PC

To enable memory compression in Windows 11, open PowerShell with admin rights and execute the “Enable-MMAgent -mc” command (without quotes). You can disable the feature by running the “Disable-MMAgent -mc” command.

Using Windows 11’s memory compression feature, you can get your PC’s RAM to store more data than its original capacity. This allows your PC to read data faster, improving your overall experience. We’ll show you how to enable and disable memory compression on your computer.

What Is Memory Compression in Windows 11?

Memory compression, as the name suggests, is a feature that compresses the memory to be loaded on your RAM, allowing your RAM to store more data than it normally would.

For example, if your PC has 8 GB of RAM available, and there’s 9 GB of data to be stored on it, memory compression will try to compress that extra data so it fits within the 8 GB capacity of your RAM.

If you don’t use memory compression, your PC will store the extra data in a file on your hard drive storage. This reduces your PC’s performance as your PC takes more time to read data from a file on the hard drive than from RAM. Unless you have a specific reason, it’s a good idea to keep memory compression enabled on your system.

How to Check If Memory Compression Is Enabled in Windows 11

Before you begin to enable or disable memory compression, check and see the feature’s current status. If it’s already enabled, you won’t have to do anything.

First, open the “Start” menu and search for “PowerShell”. Then, on the right, click “Run as Administrator.”

Select "Run as Administrator" on the right.

In the “User Account Control” prompt, choose “Yes.” Then, type the following command in PowerShell and press Enter:

Get-MMAgent

In the result text, read the value next to “MemoryCompression.” If it says “True,” the feature is enabled. If it says “False,” the feature is disabled.

Check memory compression's status.

That’s it.

How to Turn On or Off Memory Compression in Windows 11

If you’d like to change memory compression’s current status (to enable or disable it), issue a command from PowerShell as follows.

Enable Memory Compression

Open the “Start” menu, find “PowerShell”, and select “Run as Administrator” on the right. Make sure to choose “Yes” in the “User Account Control” prompt.

Select "Run as Administrator" on the right.

In PowerShell, type the following command and press Enter:

Enable-MMAgent -mc

Turn on memory compression in Windows 11.

When the command is executed, you won’t get a confirmation, you’ll simply be returned to the command line. Close the PowerShell window. Then, restart your PC by opening the “Start” menu, selecting the Power icon, and choosing “Restart.”

Select "Restart" in the menu.

And you’ve successfully enabled memory compression on your computer.

Disable Memory Compression

To turn off memory compression, open a PowerShell window with admin rights. Do this by opening the “Start” menu, finding “PowerShell”, and clicking “Run as Administrator” on the right.

Then, in the “User Account Control” prompt, choose “Yes.”

Select "Run as Administrator" on the right.

On the PowerShell window, type the following command and press Enter:

Disable-MMAgent -mc

Turn off memory compression in Windows 11.

If everything goes smoothly, you won’t see any confirmation message—you’ll simply be returned to the command line. Close PowerShell and give your PC a reboot by opening the “Start” menu, clicking the Power icon, and choosing “Restart.”

How to See the Compressed Memory Details in Windows 11

If you’ve enabled memory compression, you can see how much memory the feature is currently compressing on your system. You can also see what the memory amount would be if it wasn’t compressed.

To access that data, open your PC’s Task Manager. One way to do this is to right-click the “Start” menu icon and choose “Task Manager” in the menu.

Select "Task Manager" in the menu.

In Task Manager, from the tab list at the top, select the “Performance” tab.

Access the "Performance" tab.

From the options displayed on the left, choose “Memory.” Then, in the pane on the right, in the “In Use (Compressed)” section, you’ll see your current memory details.

The figure in the brackets is the amount of memory that memory compression has currently compressed.

View compressed memory in Windows 11.

To view the total memory amount (if it wasn’t compressed), hover your cursor over “Memory Composition” and you’ll find those details.

View the uncompressed memory amount in Windows 11.

And that’s all there is to activating and deactivating Windows 11’s memory compression feature.

Original Article