Skip to content
Menu
The Lonely Administrator
  • PowerShell Tips & Tricks
  • Books & Training
  • Essential PowerShell Learning Resources
  • Privacy Policy
  • About Me
The Lonely Administrator

Memory Reporting with PowerShell

Posted on May 20, 2016

I've started a new project and I'm hoping a few of you will give it a spin and let me know how it works for you. I've created a PowerShell module called MemoryTools that uses a few WMI classes and performance counters to provide insight into memory utilization and configuration on your servers. The module has several commands including one that skips the pipeline (exception to the rule!) and uses Write-Host to display memory status in living color.

show-memoryusage

The project is up on GitHub at https://github.com/jdhitsolutions/MemoryTools if you'd like to give it a try. The Readme file should give you a overview of what to expect. Use GitHub to report any bugs or feature requests. I know I still need to add command help.

The module should work on any computer running v3 or later. Note that the Get-PhysicalMemory command, which queries the Win32_PhysicalMemory class, may not show results for some properties. There are a few new class properties that require Windows Server 2016 but I decided to include them anyway.

I look forward to hearing about your experiences.

Share this:

  • Print (Opens in new window) Print

Like this:

Like Loading…

Related

3 thoughts on “Memory Reporting with PowerShell”

  1. Evans Conforti says:
    May 20, 2016 at 10:29 am

    Add a Test-WSMan for client connection check, otherwise you get an ugly error message for each of these systems you are not able to connect to.

    1. Jeffery Hicks says:
      May 20, 2016 at 10:38 am

      I completely understand your point. But on the other hand, there is a philosophy of cmdlets (and functions) doing one thing only. So if you wanted to test ahead of time, do that before you run the command.

  2. robert jaudon says:
    May 23, 2016 at 12:08 am

    Woohoo…..would love to try it out.

Comments are closed.

The PowerShell Practice Primer
Learn PowerShell in a Month of Lunches Fourth edition


Get More PowerShell Books

Other Online Content

github



PluralSightAuthor

Active Directory ADSI Automation Backup Books CIM CLI conferences console Friday Fun FridayFun Function functions Get-WMIObject GitHub hashtable HTML Hyper-V Iron Scripter ISE Measure-Object module modules MrRoboto new-object objects Out-Gridview Pipeline PowerShell PowerShell ISE Profile prompt Registry Regular Expressions remoting SAPIEN ScriptBlock Scripting Techmentor Training VBScript WMI WPF Write-Host xml

©2026 The Lonely Administrator | Powered by SuperbThemes!
%d