A company is currently using PowerShell integration with Office 365 as an email solution.
Which PowerShell command can be used for retrieving a list of devices in your organization that have active Microsoft Exchange ActiveSync partnerships?
A. Get-ActiveSyncDeviceClass
B. Get-Mailbox -Identity $identity
C. Get-MobileDevice -Mailbox $mailbox
D. Set-ActiveSyncMailBoxPolicy
C
https://docs.microsoft.com/en-us/powershell/module/exchange/Get-MobileDevice?view=exchange-ps
Agree with Answer = A
Refer https://docs.microsoft.com/en-us/powershell/module/exchange/devices/get-activesyncdeviceclass?view=exchange-ps
Option C doesn’t list all the devices with ActiveSync partnerships. It just lists the ActiveSync devices associated with the specified mail box using -mailbox parameter.
It’s C (Get-MobileDevice) because it’s O365.
Also it would be Get-ActiveSyncDevice and NOT Get-ActiveSyncDeviceClass for earlier versions of Exchange, so possible to eliminate (A) based on that as well.
Answer = C ( office 365)
“Get-ActiveSyncDeviceClass ” is for Exchange 2010
See page 34 of https://docs.vmware.com/en/VMware-AirWatch/9.2/VMware%20AirWatch%20PowerShell%20Integration%20Guide%20v9_2.pdf