Display CPU usage and diskpartitions bginfo

Lars 1 Reputation point
2021-09-20T13:20:54.937+00:00

Hello all
I would like to use bginfo to display the CPU usage. But I can't find a WMI query for this. Or do I have to do this somehow differently?

Also I want to display the hard disks and partitions with the respective drive letter and size.

Is it possible to do both? If yes, I would be very glad for help!

Greetings Lars

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,093 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 48,581 Reputation points
    2021-09-20T14:39:18.04+00:00

    BGInfo is for displaying a background image on the desktop. It cannot be dynamically updated. What happens is that BGInfo loads the data you want to show and creates a bitmap. Then it merges the bitmap into your current background (or uses a static background depending upon your settings). Hence it is not dynamic and without taking a perf hit you aren't going to be able to keep it up to date. To be honest Task Manager and/or Process Explorer can show this same information in the sys tray so I don't see why you would need to do that anyway.

    The same goes for disk space and info as far as BGInfo goes. You can do it via a WMI query but it is not going to be kept up to date. It'll run the query at startup (I believe) and then be static from there. Nevertheless you can use WMI to get the data you need but you'll need to create a separate query for each drive so, again, not automatic.