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 8068889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:49:58+00:00 2026-06-05T12:49:58+00:00

In Powershell I am attempting to get counters for a process (winword.exe) and then

  • 0

In Powershell I am attempting to get counters for a process (winword.exe) and then put those into a table like so:

Process Name     CPU Usage(%)    Memory Usage(KB)
winword.exe      20%             234524324
winword.exe      15%             123343443
....

I can get the counters using get-counter \process(winword*)… but this diplays each individual counter information as a list even when I choose format-table.

How can this be done?

  • 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-05T12:49:59+00:00Added an answer on June 5, 2026 at 12:49 pm

    Here is the script which format exactly the way you asked for:

    $a = @{Expression={$_.Name};Label="Process Name";width=15}, `
    @{Expression={$_.ID};Label="Process ID";width=15}, `
    @{Expression={$_.CPU};Label="CPU Utilization(%)";width=18}, `
    @{Expression={$_.VM};Label="Virtual Memory(K)";width=18} 
    
    Get-Process | Format-Table $a
    

    Just save above as script and then run in Powershell and you will see the results as below:

    Process Name         Process ID CPU Utilization(%)  Virtual Memory(K)
    ------------         ---------- ------------------  -----------------
    chrome                     7080         65.8636222          340889600
    chrome                     7668          0.8268053          199081984
    chrome                     8512          4.3836281          168914944
    

    You can modify the script to add/remove more columns and format as you like.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can't think any way but with ksh/perl, so powershell is annoying. Attempting to process
Using Powershell, I am attempting to get a list of folders and files beginning
I am attempting to use FTP in Powershell to upload a file. I am
I am attempting to redirect output of a Powershell script to a txt file.
Do PowerShell scripts run under Mono? I would like to run them on a
I'm attempting to get the owner of a file in Node.js on Windows. In
My PowerShell script file is located in C:/this-folder/that-folder/another-folder/powershell-file.ps1 . How do I get a
I am attempting to run a query against SQL using powershell and was successful
I'm attempting to create an ASP.NET/C# page that runs a PowerShell script that will
PowerShell provides a simple technique to view the contents of a function, e.g. Get-Content

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.