Skip to content

Instantly share code, notes, and snippets.

@nbdd0121
Created September 28, 2021 20:28
Show Gist options
  • Save nbdd0121/32458ea714496f13420a35141ff8428b to your computer and use it in GitHub Desktop.
Save nbdd0121/32458ea714496f13420a35141ff8428b to your computer and use it in GitHub Desktop.
"Stop" DWM from leaking memory
Get-Process | Where-Object {($_.Name -eq 'dwm' -and $_.PagedMemorySize64 -gt 2147483648) -or ($_.Name -eq 'YourPhoneServer' -and $_.PagedMemorySize64 -gt 1073741824)} | ForEach-Object {$_.Kill()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment