Quser Object


codecov
version
downloads

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

  1. Install Quser Object: Install-Module QuserObject.
  2. Import Quser Object: Import-Module QuserObject.
  3. Start Quser Object: Get-Quser.

Examples

Quick Example

This will return the quser.exe results for the current computer (aka localhost).

Target a Server

This will return the quser.exe results for ThisServer.

Target Multiple Servers

This will return the quser.exe results for ThisServer and ThatServer.

Pipeline Multiple Servers

This will return the quser.exe results for ThisServer and ThatServer.

AD Computer

This will return the quser.exe results for ThisServer.
The value is piped from a Get-ADComputer query.

AD Computer with Different Property

This will return the quser.exe results for ThisServer.
This value is piped from a Get-ADComputer query and using the AD computer DNSHostName property instead of the default Name property.

Leave a Reply

Your email address will not be published. Required fields are marked *