2 Comments

  1. GS Sohal

    Hi Aman … for column VM which has a (M) in the end the -gt seems to be not working fine

    getting VM rows having value less then 200

    same command works fine with handles and id ..

    PS D:\POWERSHELL\Myscript> Get-Process | where-object {$_.handles -gt 200}

    Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
    ——- —— —– —– —– —— — ———–
    225 7 4132 1640 57 1.52 2616 AdobeARM
    266 37 4392 512 47 1.16 1048 ccApp
    567 13 10884 3244 84 219.59 1380 ccSvcHst
    235 13 134512 75756 254 1,001.58 720 chrome
    4263 54 232912 184800 486 3,247.45 4200 chrome
    861 35 176552 120384 707 7,439.38 4396 chrome

    • Aman Dhally

      Hi Gurpreet,

      Thanks!

      But if you read the post , it is not about “getting result by using Get-Process cmdlet”,but, this post is about, using PowerShell alias versus using full Cmdlets name is the script.

      Thanks
      Aman

Leave a Reply

Your email address will not be published. Required fields are marked *