Sonntag, 20. September 2015

PowerShell Tip of the Day

I really love short and handy one-liner - and with PowerShell and the power of the pipe it is easy as 1,2,3 :)

Today I demonstrate this with a quick command to get the average Memory usage of specific processes (in MB):

Get-Process EMET_Agent | ForEach-Object { $_.WorkingSet/1MB } | Measure-Object -Average

Background: we discovered a notable memory usage per user session on our terminal servers (XenApp & RDS on Windows Server 2008 R2) and want to verify this on other servers.

May the pipe be with you :)

Keine Kommentare:

Kommentar veröffentlichen