none
Get-MobilDeviceStatistics, Exchange 2016 CU4 RRS feed

  • Question

  • hello all,

    since long time Ago we use this cmdlet(Script).

    Get-MobileDevice -result unlimited | Get-MobileDeviceStatistics | where {$_.LastSuccessSync -le (Get-Date).AddDays(-60)} | Remove-MobileDevice -confirm:$false  
    today we use this cmdlet again but it doesn't work?

    I reduscheck

    Get-MobileDevice -result unlimited | Get-MobileDeviceStatistics

    only one result???? is this a CU4 BUG?

    Get-MobileDevice show's 100 Devices


    Chris


    • Edited by -- Chris -- Thursday, February 9, 2017 10:03 AM
    Thursday, February 9, 2017 10:02 AM

Answers

  • Hi Chris,

    Never heard it's a potential bug.

    What error did you get when run the first script?

    As you mentioned, you can run "Get-MobileDevice" successfully, and get 100 devices in the results.

    We can try to run the following command to check the devices one by one, and then check if it works:

    Get-MobileDeveicStatistics -Identity "one device in the results"

    Best Regards,


    Niko Cheng
    TechNet Community Support


    Please remember to mark the replies as answers.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by -- Chris -- Tuesday, February 14, 2017 7:00 AM
    Friday, February 10, 2017 6:58 AM
    Moderator

All replies

  • Hi Chris,

    Never heard it's a potential bug.

    What error did you get when run the first script?

    As you mentioned, you can run "Get-MobileDevice" successfully, and get 100 devices in the results.

    We can try to run the following command to check the devices one by one, and then check if it works:

    Get-MobileDeveicStatistics -Identity "one device in the results"

    Best Regards,


    Niko Cheng
    TechNet Community Support


    Please remember to mark the replies as answers.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by -- Chris -- Tuesday, February 14, 2017 7:00 AM
    Friday, February 10, 2017 6:58 AM
    Moderator
  • Niko,

    I thinks thats the Problem. MS store OU, but if you move User to other OU, MS doesn't Change the Device OU.

    Get-MobileDeveicStatistics -Identity <deviceID>   => didn't work

    Get-MobileDeveicStatistics -Identity <Identity>   => didn't work maybe the default but old wrong OU

    Get-MobileDeveicStatistics -Identity <GUI>   => work's fine

    DeviceID                           : ApplDNVHNLLCDTC0
    Identity                           : Company.com/<wrong old OU>max mustermann /ExchangeActiveSyncDevices/iPhone§ApplDNVHNLLCDTC0
    Guid                               : 800dc952-8776-4be2-9cdf-0c76433e30a5


    Chris

    Friday, February 10, 2017 7:30 AM