Retreiving memory usage using WMI

Posted on 2006-03-24
Last Modified: 2008-02-01

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

Question by:sansoftura
    LVL 6

    Accepted Solution

    LVL 3

    Assisted Solution

    This is an example in C#, but should give you what you are looking for:

    Also, check out Emmet Gray's fantastic program in VB.NET.  You might benefit from this the most:

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Add mobile access to browser application 3 108
    Fix45 challenge 15 66
    allStar challenge 1 27
    pairs challenge 5 31
    This is an explanation of a simple data model to help parse a JSON feed
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now