HOTSPOT
You are the Office 365 administrator for your company.
Management has requested a report of all Microsoft Exchange ActiveSync-enabled
employees and their devices.
You need to generate a report that contains employee display names and device types.
How should you complete the relevant Windows PowerShell script? To answer, select the
appropriate option from each list in the answer area.
How should you complete the relevant Windows PowerShell script?
HOTSPOT
You are the Office 365 administrator for your company.
Management has requested a report of all Microsoft Exchange ActiveSync-enabled
employees and their devices.
You need to generate a report that contains employee display names and device types.
How should you complete the relevant Windows PowerShell script? To answer, select the
appropriate option from each list in the answer area.
This answer is correct.
Here is the closest example I could find to this script. http://briandesmond.com/blog/how-to-create-an-activesync-device-report/. In the above, they request that it display name is used, but the reference link I’ve given doesn’t add that component. (but you should be able to follow how they filtered out display name in the $ActiveSyncUsers variable)
That being said, it may not actually show you ALL the devices that have a partnership due to replication problems between exchange and AD. http://teknologist.net/2010/why-you-cant-trust-mobile-device-reports/ (it’s from 2010 though so it may have been corrected)
I ran the commands against my O365 E3 tenant and the drop down options are correct however the PowerShell commands themselves have a few syntax errors. For example the first line should either omit the quotes or curly braces. For example:
$ActiveSyncUsers = Get-CASMailbox -Filter {hasactivesyncdevicepartnership -eq $true}
$ActiveSyncUsers = Get-CASMailbox -Filter “hasactivesyncdevicepartnership -eq ‘$true'”
The article that Hammer mentions above does a good job illustrating the commands and then there’s the articles listed below.
https://technet.microsoft.com/en-us/library/bb124754(v=exchg.150).aspx
https://support.microsoft.com/en-us/kb/3001236
And again, Justin nailed it. In short, proposed answer is correct for test purposes.
The 2nd line missed out a “{” between “@” and “Name”. It should be @{Name=”Device”
Otherwise, it will have syntax error.
Nevertheless, the answer remains correct.