wmi

Using ManagementScope (WMI) - Any gotchas?

I want to use System.Management.ManagementScope to query the list of currently logged in users. This will be part of a larger application that we will deploy to our customers, so it needs to be easy to setup and highly reliable. Is ManagementScope/WMI a good fit? Should it always be available to query on most OSes? Are there any secur...

How to get list of installed applications using Ruby in Windows?

I Know using wmi query "WIN32_product" one can read the list of installed applications but the list is different from add/remove program list under control panel. Another approach would be to read Software\Microsoft\Windows\CurrentVersion\Uninstall in windows registry? I am using the following few lines of ruby code to do that but it is...