PowerShell function Get-QUser will parse results of “query user” into an array

This PowerShell function will help Windows administrators use the output of “query user” or “quser” as a PowerShell array. query user: raw output “query user” or “quser” output in Windows looks like this: 1 2 3 USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME username1 1 Disc 19:12 9/22/2023 8:38 AM username2 console 2 Active …