Skip to content

Instantly share code, notes, and snippets.

@AshFlaw
Created July 17, 2018 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AshFlaw/d02eae0b209a6493a4dc99a5496e75af to your computer and use it in GitHub Desktop.
Save AshFlaw/d02eae0b209a6493a4dc99a5496e75af to your computer and use it in GitHub Desktop.
Get available RAM on a remote server via powershell
$Server = ""
(Get-Counter -Counter "\Memory\Available MBytes" -ComputerName $Server).CounterSamples[0].CookedValue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment