Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9009799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:17:39+00:00 2026-06-16T02:17:39+00:00

In Process Explorer terms it is WS Private Bytes , whereas in Task Manager

  • 0

In Process Explorer terms it is WS Private Bytes, whereas in Task Manager terms it is Private Working Set.

I would like a command line utility to display this information given a process name.

EDIT

A powershell script will do as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:17:40+00:00Added an answer on June 16, 2026 at 2:17 am

    In PowerShell you may use:

    [EDIT]

    function ProcessInfo
    {
        param
        ([String]$processName)
    
        $workingSet = get-counter -counter "\Process($processName)\Working Set - Private" | select -expandproperty countersamples | select cookedvalue
        $privateBytes = get-counter -counter "\Process($processName)\Private Bytes" | select -expandproperty countersamples | select cookedvalue
    
        get-process $processName | select `
            name, `
            @{Name="Private Working Set"; Expression = {$workingSet.CookedValue}},`
            @{Name="WS Private Bytes"; Expression = {$privateBytes.CookedValue}}
    }
    
    ProcessInfo("winrar")
    

    [EDIT2]

    Here’s an improved version which takes the process id as a parameter.

    function GetProcessInfoById
    {
        param
        ([int]$processId)
    
        Get-WmiObject -class Win32_PerfFormattedData_PerfProc_Process | where{$_.idprocess -eq $processId} | select `
        @{Name="Process Id"; Expression = {$_.idprocess}},`
        @{Name="Counter Name"; Expression = {$_.name}},`
        @{Name="Private Working Set"; Expression = {$_.workingSetPrivate / 1kb}}        
    }
    
    GetProcessInfoById 380
    

    And here’s an version which takes the process name as a parameter. This may return multiple values (one for each instance of the process) and you can identify processes by the values by the Process Id.

    function GetProcessInfoByName
    {
        param
        ([string]$processName)
    
        Get-WmiObject -class Win32_PerfFormattedData_PerfProc_Process | where{$_.name -like $processName+"*"} | select `
        @{Name="Process Id"; Expression = {$_.idprocess}},`
        @{Name="Counter Name"; Expression = {$_.name}},`
        @{Name="Private Working Set"; Expression = {$_.workingSetPrivate / 1kb}}
    }
    
    GetProcessInfoByName svchost
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Leaking GDI objects can be seen from the task manager or from Process Explorer
In the process explorer in the task manager, there used to be something called
Process Explorer has an option which I have used recently called Replace Task Manager..
Both Task Manager and SysInternals Process Explorer show the total amount of a process's
I'm working on a mini windows process explorer in C, I have a handle
I took a dump file of a managed process using both task manager and
There are some nice debugging tools available for windows like Process Explorer Process Monitor
I really like the way the SysInternals utilities (e.g. Process Explorer) handle 64bit compatibility.
How do I suspend a whole process (like the Process Explorer does when I
Is there a Process Explorer-like application for Windows Phone 8 devices? We're trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.