So this is one more of those I hate WMI things. I needed to know the username of the owner of a process. As always I stumbled over
it works, sure, but it isn't pretty and its WMI … did I mention I hate WMI ?
I love it! and it almost use the same amount of code lines … *cough*