We help IT Professionals succeed at work.

Retreiving memory usage using WMI

Abirami Rajendran
on
Medium Priority
2,916 Views
Last Modified: 2008-02-01
Hi,

I want to write an VB / .Net application using WMI that would retreive me the memory usage and the cpu usage of a given process at a given point of time.

I tried many WMI classes like Win32_Process, Win32_OperatingSystem etc but was not able to get a solution.

Can anyone help me in this?

Thanks In Advance

Sriram.
Comment
Watch Question

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT
Commented:
This is an example in C#, but should give you what you are looking for:
http://www.codeproject.com/csharp/wmi.asp

Also, check out Emmet Gray's fantastic program in VB.NET.  You might benefit from this the most:
http://home.hot.rr.com/graye/AdminTools.htm
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.