Ermitteln der Benutzer mit ActiveSync Geräten ohne XenMobile MDM
Um ActiveSync Benutzer ohne XenMobile MDM (SecureMail/SecureTasks/SecureNotes, bzw. ehemals WorxMail/WorxTasks/WorxNotes) per PowerShell abzufragen:
- Verbinden auf einen Exchange Server
- Starten der Exchange Server Management Shell als Administrator
- Ausführen der folgenden Befehle
Exchange 2007-2013:
$NoMDM = Get-ActiveSyncDevice | where {$_.deviceuseragent -notlike "Worx*" -and $_.deviceuseragent -notlike "Secure*"} $NoMDM | Get-ActiveSyncDeviceStatistics | select-object Identity,LastSuccessSync
ab Exchange 2016:
$NoMDM = Get-MobileDevice | where {$_.deviceuseragent -notlike "Worx*" -and $_.deviceuseragent -notlike "Secure*"} $NoMDM | Get-MobileDeviceStatistics | select-object Identity,LastSuccessSync
Im konkreten Fall haben wir von BlackBerry auf iPhones migriert und es sollten in der Abfrage auch BlackBerry Geräte vom Resultat ausgenommen werden.
Exchange 2007-2013:
$NoMDM = Get-ActiveSyncDevice | where {$_.deviceuseragent -notlike "Worx*" -and $_.deviceuseragent -notlike "Secure*" -and $_.deviceos -notlike "Blackberry*"} $NoMDM | Get-ActiveSyncDeviceStatistics | select-object Identity,LastSuccessSync
ab Exchange 2016:
$NoMDM = Get-MobileDevice | where {$_.deviceuseragent -notlike "Worx*" -and $_.deviceuseragent -notlike "Secure*" -and $_.deviceos -notlike "Blackberry*"} $NoMDM | Get-MobileDeviceStatistics | select-object Identity,LastSuccessSync
–