GordonPrince
asked on
how can I tell who's logged on to Exchange 2007?
how can I tell who's logged on to Exchange 2007? I can't find this anywhere. I know it's simple.
ASKER
Get-LogonStatistics shows multiple lines per user. I just want a list of who is currently logged onto the Exchange Server. Some of my users have 20 rows that all look the same to me.
Also, it seems to be showing everyone who's logged on since the server came up (a week ago), even though those users aren't currently logged on. Or does that mean they still have sessions logged on even though they thought they logged off?
Also, it seems to be showing everyone who's logged on since the server came up (a week ago), even though those users aren't currently logged on. Or does that mean they still have sessions logged on even though they thought they logged off?
ASKER
Turns out the other users WERE logged on. So I've logged them off, now I only show system rows + 1 user. But the 1 user shows up about 20 times.
Is there a way to get one row per user?
Is there a way to get one row per user?
That is because each user will actually have multiple sessions open. This script will help clean up and results and give you something closer to what you are looking for.
http://gsexdev.blogspot.com/2009/03/sanitizing-get-logonstatistics-cmdlet.html
http://gsexdev.blogspot.com/2009/03/sanitizing-get-logonstatistics-cmdlet.html
ASKER
Isn't there a GUI version of this? To display the information in rows & columns like I get from the SQL Server Management Studio?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Get-LogonStatistics gives Logon Time and Last Access Time, which is quite helpful. You do have to export the output to a csv file and then open in Excel..
http://technet.microsoft.com/en-us/library/bb124415.aspx