bibi92
asked on
for processes powershell do a sum of WorkingSetPrivate
Hello,
How can I modifiy this script for doing a sum of WorkingSetPrivate for all processes Powershell :
If ($ProcessName -eq "Powershell") {
$ProcessList = gwmi Win32_PerfFormattedData_Pe rfProc_Pro cess | where {$_.Name -eq $ProcessName} | select IDProcess,Name,WorkingSetP rivate | sort WorkingSetPrivate -Descending | select -First $SelectFirst
}
Thanks
Regards
How can I modifiy this script for doing a sum of WorkingSetPrivate for all processes Powershell :
If ($ProcessName -eq "Powershell") {
$ProcessList = gwmi Win32_PerfFormattedData_Pe
}
Thanks
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have tested, the sum WorkingSetPrivate is only the result of the last process, I checked the result in column memory private working set with task manager
ASKER
gwmi Win32_PerfFormattedData_Pe rfProc_Pro cess return the last process id
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, I will test it. Thanks
bibi, http:#a40688399 will only get you one instance of the process. You'll need to make the process list generated with something like http:#a40689243 to get all instances' values.
ASKER
yes exactly thanks
Then points should get split.
ASKER
yes it's an error. How can I split? thanks
Open in new window