I need to pull in primarysmtpaddress to Get-LogonStatistics. Here's what I have so far:
Get-Mailbox -ResultSize unlimited | Get-LogonStatistics | Select UserName,ClientVersion,LastAccessTime,ServerName | Export-Csv "C:\outlook_version.csv" -NoTypeInformation
Any help would be greatly appreciated.