Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Sorting high mem processes

$
0
0

Hi

I'm new to this forum as well as relatively new to PS scripting (though I've used it for networking purposes). I'm trying to make a script that will select processes with a higher value of paged memory than, say, 750MB, and stop them. I've tried makig it with an array and foreach loop, but when I make a variable

$PS= Get-Object | Where {$_.PM -ge 750000000}

It works but does not behave like an array, so I cannot use foreach or length property. I would appreciate any help on this topic

Thanks in advance


Viewing all articles
Browse latest Browse all 8583

Latest Images

Trending Articles



Latest Images