king daddy
asked on
Help getting UPN, email address, or user name from ActiveSyncDeviceStatistics or Get-MobileDeviceStatistics
This is what I am using to get a Mobile Device report from our Office 365 server. I get Identity in the report, but it looks like this and is not easy to work with.
SERVER.PROD.OUTLOOK.COM/Mi crosoft Exchange Hosted Organizations/company365.o nmicrosoft .com/Displ ay Name/ExchangeActiveSyncDev ices/Andro id?android c97397597
SERVER.PROD.OUTLOOK.COM/Mi crosoft Exchange Hosted Organizations/company365.o nmicrosoft .com/Displ ay Name/ExchangeActiveSyncDev ices/iPhon e?7YHLOI8D ER5HCN01HY HY8UDEC
This is the power shell I am running:
$Mailboxes = Get-Mailbox -Identity $_.UserPrincipalName -RecipientTypeDetails UserMailbox -ResultSize Unlimited
$Devices = $Mailboxes | %{Get-ActiveSyncDeviceStat istics -Mailbox $_.Identity} | `?{$_.LastSuccessSync | export-csv PATH
I need to get the email address, UPN, or even the user's display name in a column.
Any help much appreciated.
SERVER.PROD.OUTLOOK.COM/Mi
SERVER.PROD.OUTLOOK.COM/Mi
This is the power shell I am running:
$Mailboxes = Get-Mailbox -Identity $_.UserPrincipalName -RecipientTypeDetails UserMailbox -ResultSize Unlimited
$Devices = $Mailboxes | %{Get-ActiveSyncDeviceStat
I need to get the email address, UPN, or even the user's display name in a column.
Any help much appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect. Thanks again, Vasil.
ASKER