Solved

Get-logonstatistics

Posted on 2011-03-03
6
1,381 Views
Last Modified: 2012-05-11
I see this is a useful command to run to gain knowledge about clients.

But when I run get-logonstatistics -identity me@mydomain.com | fl

I seem to get loads of entries, as in lots of different times, do they refer to different times I opened Outlook? Is there a way to add a switch just to get the latest entry?

Also, there is an entry for "latency". Does this mean latency from the machine where I ran Powershell or latency between the client and the mailbox server?
0
Comment
Question by:Joe_Budden
  • 3
  • 2
6 Comments
 
LVL 4

Expert Comment

by:AmonPereira
Comment Utility
Use the same command but after | type FT instead of FL.

Doing this it will show you all the options and you might add it to your next query.

0
 
LVL 1

Author Comment

by:Joe_Budden
Comment Utility
Well that just lists loads of different Logon times, some only a few minutes from each other..not sure why that is?

Also - do you know what the "latency" field refers to?
0
 
LVL 7

Accepted Solution

by:
OctInv earned 500 total points
Comment Utility
To answer one question, I think the latency refers to network performance, or lack of it for RPC.

As for the actual cammand there are amny attributes you can report on, such as:

Get-LogonStatistics "firstname Surname" | Format-Table username,clientipaddress,logontime

Personally I prefer to use the get-mailboxstatistics cmdlt as it can produce more useful information:

Get-MailboxStatistics -Database "ExchangeServer\databse" | Sort -Property TotalItemSIze | ft DisplayName, @{expression={$_.totalitemsize.value.ToMB()};label="Mailbox Size(MB)"}, itemcount, lastlogontime, lastlogofftime,lastloggedonuseraccount
0
The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

 
LVL 7

Expert Comment

by:OctInv
Comment Utility
It's late and my spelling is terrible ;-)
0
 
LVL 1

Author Comment

by:Joe_Budden
Comment Utility
Thanks

This morning I had an issue where if I checked get-logonstatistics latency for a user, the latency was listed as about 800. The user in question was saying that his Outlook was unresponsive.

However, if I ran a Ping from the same Exchange server I ran the get-logontstatistics command from, the result was about 20ms.

Do you know what could cause the difference?
0
 
LVL 7

Expert Comment

by:OctInv
Comment Utility
This could be any number of reasons and without knowing anything about your environment it is very difficult to comment. I would certianly start by using a performance monitoring tool to get the average RPC latancy reading. Also try other tools such as EXBPA. Is this issue just with one mailbox? If so is there something on the client machine that is submitting high RPC requests to Exchange? Some add in to Outlook maybe, or even a mobile device...? Really need more information.
0

Featured Post

Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now