Question
I'm writing SolarWinds SAM script that can monitor logged in users on a remote machine. I wanted to use quser rather than a WMI/CIM based solution because quser provides exactly the data that i'm looking for.
The kicker is that the monitoring application provides a PSCredential object to use in order to authenticate with remote machines, something that quser can't use.
Code
When running with no credential object I get the following.
quser /server:'testserver1'
Output
No User exists for *