Hi PowerGuyz,
I am very new to this forum and also exploring PS too. Now I used to run Get-process command with memory values in MB format. I don’t want to change the property name, but the value I am expecting in MB. Now the problem is, the output is coming as custom property name. How should I manage the same?
Also please guide me if there is any shortcut to perform the same.
Here is the command:
Get-Process |select id, ProcessName, {$.pm /1mb -as [int]}, {$.vm /1mb -as [int]}, cpu -First 5|ft -AutoSize
Output:
Id ProcessName $.pm /1mb -as [int] $.vm /1mb -as [int] CPU
9524 AcroRd32 98 284 30.5137956
10564 AcroRd32 8 83 6.9732447
2188 armsvc 1 43 0.2496016
2164 CcmExec 45 224 36.7382355
2304 chrome 2 64 0.0156001
Regards,
Roy.