Run quser.exe
and return a proper PowerShell Object.
I discussed this on my blog to enhance a StackOverflow answer.
I ended up making this into a module: Quser Object .
The source is on GitHub.
Quick Setup
- Install Quser Object:
Install-Module QuserObject
. - Import Quser Object:
Import-Module QuserObject
. - Start Quser Object:
Get-Quser
.
Examples
Quick Example
This will return the quser.exe
results for the current computer (aka localhost
).
1 |
Get-QuserObject |