Commands › Exchange Online
Get-LogonStatistics
This cmdlet is functional only in Exchange Server 2010. The Get-LogonStatistics cmdlet is deprecated and is no longer used.
Quick start script
# Get-LogonStatistics — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Run and inspect
Get-LogonStatistics -Identity <LogonableObjectIdParameter> -Database <DatabaseIdParameter> -Server <ServerIdParameter> | Format-List
# 3. Export for evidence / drift tracking
Get-LogonStatistics | Export-Clixml .\LogonStatistics-$(Get-Date -Format yyyyMMdd).xml
Syntax — 3 parameter sets
Database
Get-LogonStatistics -Database <DatabaseIdParameter>
[-DomainController <Fqdn>]
[<CommonParameters>]
Identity
Get-LogonStatistics [-Identity] <LogonableObjectIdParameter>
[-DomainController <Fqdn>]
[<CommonParameters>]
Server
Get-LogonStatistics -Server <ServerIdParameter>
[-DomainController <Fqdn>]
[<CommonParameters>]
Parameters (4)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.