Created
September 23, 2023 13:57
-
-
Save rossarioking/297b1761d07a03919150d14397e07c93 to your computer and use it in GitHub Desktop.
Monitoring Memory Usage with Powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Counter '\Memory\Available MBytes' -Continuous | ForEach-Object {Write-Host "Available Memory: $($_.CounterSamples[0].CookedValue) MB"; Start-Sleep -Seconds 10} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment