Lunchtime Tip: Powershell Process List

Powershell is worth a look if you haven’t used it before.

It is Microsoft’s new command line that operates in an object-oriented way.

There are still Unix commands that I think work better (like Tail, but we won’t go there yet).

Today’s tip is about getting a list of processes that are running.

For folks who have used Unix, this is similar to the PS command. For purely Windows folks, this is like the process list in Task Manager.

This is a quick-tip, so I won’t belabor the point:

Get-Process

That’s it. You will get a listing of processes that are running and info about how much CPU and memory they are consuming.

Want to see see just instances of Internet Explorer? Get-Process iexplore

Want to see Internet Explorer and Outlook? Get-Process iexplore, OUTLOOK

For more info, plus lots of other info about Powershell go to http://technet.microsoft.com/en-us/library/ee176855.aspx.

If you want to get the top 5 CPU using processes try this:

Get-Process | Sort-Object cpu -descending | Select-Object -first 5

As you can see you are piping the results of Get-Process through Sort-Object and then Select-Object. 

Here’s a fun one to try from that page:

Get-Process | Select-Object name,fileversion,productversion,company

I won’t tell you what it does; go try it!

Posted on 11/23/2009 2:01:00 PM by jeffa

Permalink | Comments (11) | Post RSSRSS comment feed |

Categories: Lunch Time Tip

Tags: , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

November 25. 2009 13:09

I was very happy that I found this site. I wanted to thank you for this great information!! I definitely enjoyed every bit of it and I have you bookmarked your blog to check out the new stuff you post in the future.

learn guitar us

November 25. 2009 16:31

Hej. Thank you for sharing your knowledge. Looks good to me. I am working as seller, I prefer to use Outlook as my email client and with the help of Email Sorter Wizard, an Outlook add-in, I get all my email filed. I am sure people will get good advice from your blog.

Kermit H. Clemons

November 26. 2009 06:47

Wow! Congratulations on your remarkable contribution. Well that makes sense. In my line of work, I am communicating only with email. I preferably work with Outlook as my email client and with the help of Email Sorter Wizard, an Outlook add-on, I file all my email with ease. You made a good point. Thanks.

Patricia

November 29. 2009 09:33

Hej! Congratulations on your good post. I only use e-mail for my communication in my line of work. I favor Outlook as my email client and with the help of Email Sorter Wizard, an Outlook add-on, I get all my e-mail sorted. Keep up the great work and informative shares. Thanks.

Pascale P. Fuentes

December 5. 2009 12:31

Hey admin, thanks for providing this information!, i found it superb. Greets, Hamdi!!

online games free

December 5. 2009 13:50

Really great idea. I’m really happy to read this site. Thank you for sharing us great info.

best way to lose belly fat us

December 5. 2009 18:50

Hi. I wanted to drop you a quick note to express my thanks. I have been following your blog for a month or so and have picked up a ton of excellent information as well as enjoyed the way you've structured your site. I'm making an attempt to run my very own blog however I think its too general and I need to focus more on smaller topics. Being all things to all people isn't all that its cracked up to be Smile

Home Improvement Girl us

December 5. 2009 18:50

I simply wanted to add a comment here to say thanks for you very nice ideas. Blogs are tough to run and time consuming so I appreciate when I see well writen material. Your time isn't going to waste with your posts. Thanks so much and keep on You'll defintely reach your goals! cheers!

DIY Guy us

December 6. 2009 09:28

Thanks for sharing the information with us, really appreciate it! Smile

Issac Maez

December 7. 2009 14:28

Nice ideas on this webpage. It's rare nowadays to get sites with information you are seeking. I'm delighted I found this site. I will definitely bookmark it or even subscribe to your rss feeds just to be updated on your new posts. Maintain the good work and I am positive another folks researching valued information can certainly stop by and benefit from your web site for resources.

acai berry supplements us

December 7. 2009 15:53

thanks for the useful tips here. I have a home improvement blog that I work very hard on like you are doing here. My efforts skew towards more general topics and hopefully give high level answers for what people are searching for. Keep on doing a great job with your blog

fly fishing flies us

Comments are closed