1 Pluspunkt 0 Minuspunkte

Wie kann ich die Exchange Active Sync Statistiken von einem Mobile Device anzeigen? Mit dem Befehl

Get-MobileDevice | select * | select-object -first 1

erhalte ich eine Ausgabe wie diese.

RunspaceId              : ecfdbf6d-b44a-4369-aeed-4cb29e286eb0
FriendlyName            :
DeviceId                : sophfw5x48gu9ryw66f5tnmu9nlg8ip4
DeviceImei              :
DeviceMobileOperator    :
DeviceOS                :
DeviceOSLanguage        :
DeviceTelephoneNumber   :
DeviceType              : iPhone5sGlobal
DeviceUserAgent         : SecurePIM 7.23.4 - iOS 10.2.1
DeviceModel             : iPhone5sGlobal
FirstSyncTime           : 21.02.2017 15:57:40
UserDisplayName         : dom.local/USERS/User1
DeviceAccessState       : Allowed
DeviceAccessStateReason : Global
DeviceAccessControlRule :
ClientVersion           : 14.1
ClientType              : EAS
IsManaged               : False
IsCompliant             : False
IsDisabled              : False
AdminDisplayName        :
ExchangeVersion         : 0.10 (14.0.100.0)
Name                    : iPhone5sGlobal§sophfw5x48gu9ryw66f5tnmu9nlg8ip4
DistinguishedName       : CN=iPhone5sGlobal§sophfw5x48gu9ryw66f5tnmu9nlg8ip4,CN=ExchangeActiveSyncDevices,CN=User1,OU=USERS,DC=dom,DC=local
Identity                : dom.local/Users/User1/ExchangeActiveSyncDevices/iPhone5sGlobal§sophfw5x48gu9ryw66f5tnmu9nlg8ip4
Guid                    : 044e412d-c004-4530-9ed9-19eb70a3ef91
ObjectCategory          : dom.local/Configuration/Schema/ms-Exch-Active-Sync-Device
ObjectClass             : {top, msExchActiveSyncDevice}
WhenChanged             : 06.05.2024 12:20:17
WhenCreated             : 21.02.2017 16:57:40
WhenChangedUTC          : 06.05.2024 10:20:17
WhenCreatedUTC          : 21.02.2017 15:57:40
OrganizationId          :
Id                      : dom.local/Users/User1/ExchangeActiveSyncDevices/iPhone5sGlobal§sophfw5x48gu9ryw66f5tnmu9nlg8ip4
OriginatingServer       : vie-srv-dc02.dom.local
IsValid                 : True
ObjectState             : Unchanged

Wenn ich dann aber mit Get-MobileDeviceStatistics die Statistiken abfragen möchte wird keiner der tewa 100 Geräte gefunden. 

Get-MobileDevice | foreach-object { Get-MobileDeviceStatistics -Identity $_.DeviceId }

The mobile device SEC59A467328B644 cannot be found.
    + CategoryInfo          : NotSpecified: (:) [Get-MobileDeviceStatistics], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=EX01,RequestId=1688a75e-3424-44a6-9e14-6ca9195cd17a,TimeStamp=26.03.2025 15:48:28] [FailureCategory=Cmdlet-ManagementObjectNo
   tFoundException] C5BE9392,Microsoft.Exchange.Management.Tasks.GetMobileDeviceStatistics
    + PSComputerName        : ex01.dom.local

The mobile device R5MO97O2GP3VTCOLD4SGV4DE98 cannot be found.
    + CategoryInfo          : NotSpecified: (:) [Get-MobileDeviceStatistics], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=EX01,RequestId=1688a75e-3424-44a6-9e14-6ca9195cd17a,TimeStamp=26.03.2025 15:48:28] [FailureCategory=Cmdlet-ManagementObjectNo
   tFoundException] 3B0CE11C,Microsoft.Exchange.Management.Tasks.GetMobileDeviceStatistics
    + PSComputerName        : ex01.dom.local

The mobile device SEC5501FAA5F4608 cannot be found.
    + CategoryInfo          : NotSpecified: (:) [Get-MobileDeviceStatistics], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=EX01,RequestId=1688a75e-3424-44a6-9e14-6ca9195cd17a,TimeStamp=26.03.2025 15:48:28] [FailureCategory=Cmdlet-ManagementObjectNo
   tFoundException] EF8BFBA3,Microsoft.Exchange.Management.Tasks.GetMobileDeviceStatistics
    + PSComputerName        : ex01.dom.local

The mobile device SEC1C52CD9FD9B6B cannot be found.
    + CategoryInfo          : NotSpecified: (:) [Get-MobileDeviceStatistics], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=EX01,RequestId=1688a75e-3424-44a6-9e14-6ca9195cd17a,TimeStamp=26.03.2025 15:48:28] [FailureCategory=Cmdlet-ManagementObjectNo
   tFoundException] E30DB7DB,Microsoft.Exchange.Management.Tasks.GetMobileDeviceStatistics
    + PSComputerName        : ex01.dom.local

Ich habe als Parameter auch Identity und andere probiert aber keines funktioniert.

von  

1 Antwort

0 Pluspunkte 0 Minuspunkte

Du kannst die Guid des Device übergeben.

$device = Get-MobileDevice | where-object { $_.Identity -eq "dom.local/Users/User1/ExchangeActiveSyncDevices/iPhone5sGlobal%C2%A7sophfw5x48gu9ryw66f5tnmu9nlg8ip4" }
Get-MobileDeviceStatistics -Identity $device.Guid.toString()
von (1.3k Punkte)