While RAM compression can be useful to avoid using swap/page file on your storage, it uses CPU resources to do compression/decompression. This can make noticeable computer slowdowns after prolonged use, e.g. after weeks of computer usage where computer was not shutdown but put in standby/hibernation in between.
Start PowerShell as admin. To check status of RAM compression:
Get-MMAgent
To disable memory compression:
Disable-MMAgent –MemoryCompression
To re-enable memory compression:
Enable-MMAgent -MemoryCompression
For change to be applied, computer restart is needed.
Yeah, one more example of stupid and unmemorable PowerShell cmdlets naming conventions …