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.

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.

Answer:

Explanation:



Leave a Reply 4

Your email address will not be published. Required fields are marked *


WallkerPF

WallkerPF

The “HasActiveSyncDevicePartnership” filter option is only available for “Get-CASMailbox” command (https://technet.microsoft.com/en-us/library/bb738155(v=exchg.160).aspx, scroll to the Advanced filterable properties) -> the first row is true

“Select-Object DisplayName” is true -> the second row is true

and at last the “Get-ActiveSyncDevice” command has “-Mailbox” parameter mandatory (required), the “-Identity” is optional (https://technet.microsoft.com/en-us/library/dd335068(v=exchg.160).aspx) -> the third row is true

Atrevido

Atrevido

I agree with the above answers – the below command runs, I’ve corrected the syntax. There are no ” in the first line, the \ isn’t there in the 3rd line, etc etc. don’t run this on a live environment because it’s a deprecated or soon to be command. It will be replace with Get-MobileDevice

$activesyncusers = Get-CASMailbox -Filter {hasactivesyncdevicepartnership -eq $true}

$activesyncusers | Select-Object -property DisplayName,@{Name=”Device”; Expression={(Get-ActiveSyncDevice -Identity $_.Mailbox).DeviceType }}