Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powershell to show names of connected users

Status
Not open for further replies.

techseek

MIS
Nov 5, 2010
97
US
Hello
I've tried logonstatistics but it shows multiple lines for users.
I understand that a user can have many connections (Get-LogonStatistics <username> | select Username, ServerName, ClientName, ApplicationId | ft -AutoSize)
but I want a command that just shows username (with logon time optional)
one line per user only. I found plenty commands that give number of users connected but don't show the name(s)

thx
 
there isn't one. You can only parse the logon stats. If a user is in cached mode to a load balancer, there is no activity so you could class them as not logged on, but Outlook is running.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top