Created
September 30, 2015 20:19
-
-
Save mgreenegit/ca130bc642736d316a44 to your computer and use it in GitHub Desktop.
Mem
This file contains 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
function Get-AvailableMemory { | |
$Mem = '' | Select AvailableMemory | |
$Mem.AvailableMemory = Get-Counter '\Memory\Available MBytes' | % CounterSamples | % CookedValue | |
return $Mem | |
} | |
New-Alias Mem Get-AvailableMemory -Scope Global |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment