question

Gurudas avatar image
0 Votes"
Gurudas asked joyceshen-MSFT commented

Powershell command to check the last sync of mobile devices in exchange online.

Hello Team,

Please let me know powershell command to check the last sync of mobile device in exchange online for a user

email : John.dave@contoso.com
Exchange Online

Powershell: Get-ActiveSyncDevice -Mailbox “John.dave@contoso.com

Need lastsync details like Date, Time

Thank you in advance :)

office-exchange-online-itpro
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @GurudasSatardekar,

I am writing to see how everything is going on with this thread. If you still have further concern on this, please feel free to let us know.


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



0 Votes 0 ·

Hi @GurudasSatardekar,

Is your issue get resolved now? Feel free to share your progress here if any.


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




0 Votes 0 ·
AndyDavid avatar image
0 Votes"
AndyDavid answered
  Get-MobileDeviceStatistics -Mailbox John.dave@contoso.com” |FL *sync*
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

joyceshen-MSFT avatar image
0 Votes"
joyceshen-MSFT answered joyceshen-MSFT edited

Hi @GurudasSatardekar,

Agree with the suggestion above from Andy, you could also take a reference at the script provided in the link here to get more information:
Get Mobile Device Statistics In Exchange Online Using Powershell
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

 #Get all mobile devices in the org
 $MobileDeviceList = Get-MobileDevice
     
 #Alternatively, Get all mobile devices from a single user
 $MobileDeviceList = Get-MobileDevice -Mailbox pcontreras@thesysadminchannel.com
     
 foreach ($Device in $MobileDeviceList) {
     $Stats = Get-MobileDeviceStatistics -Identity $Device.Guid.toString()
     [PSCustomObject]@{
         Identity              = $Device.Identity -replace "\\.+"
         DeviceType            = $Device.DeviceType
         DeviceOS              = $Device.DeviceOS
         LastSuccessSync       = $Stats.LastSuccessSync
         LastSyncAttemptTime   = $Stats.LastSyncAttemptTime
         LastPolicyUpdateTime  = $Stats.LastPolicyUpdateTime
         LastPingHeartbeat     = $Stats.LastPingHeartbeat
         ClientType            = $Stats.ClientType
     }
 }

Which will return the result like below:
196305-image.png


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (67.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.