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 security concerns I have to consider, say for example a non-elevated user logs into a workstation, will that user be able to query the WMI? Will a system account running as a service?
Any other gotchas I should know about before going this route?
Thanks