Powershell script which lets me see all the users connected across the Network of servers

FAIZ QURESHI 1 Reputation point
2022-11-16T20:12:39.77+00:00

Hello All,
I am looking for help with a PowerShell script which lets me see all the users connected across the Network of servers. Please let me know if there is any such script which I can use or may be tweak a little bit.

Regards
Faiz

We need a simple report like

User ID, Session_ID , Local Client_Host_ID, Remote Server_ID_Connected to, brief_descp_Activity performed

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-11-21T03:17:37.777+00:00

    Hi,

    I didn't find such a script however you can use the quser command to get all the user sessions on a Remote Desktop Session Host server.

    Please refer to below links for more details.
    https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/quser
    https://devblogs.microsoft.com/scripting/automating-quser-through-powershell/

    Best Regards,
    Ian Xue

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.