Commands › Exchange Online

Get-MobileDevice

Exchange Online ExchangeOnlineManagement Get-*

Get the list of devices in your organization that have active partnerships.

Quick start script

# Get-MobileDevice — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-MobileDevice -Mailbox <MailboxIdParameter> | Format-List

# 3. Export for evidence / drift tracking
Get-MobileDevice | Export-Clixml .\MobileDevice-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

Mailbox

Get-MobileDevice -Mailbox <MailboxIdParameter>
 [-ActiveSync]
 [-DomainController <Fqdn>]
 [-Filter <String>]
 [-Monitoring]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-OWAforDevices]
 [-ResultSize <Unlimited>]
 [-SortBy <String>]
 [-RestApi]
 [-UniversalOutlook]
 [<CommonParameters>]

Identity

Get-MobileDevice [[-Identity] <MobileDeviceIdParameter>]
 [-ActiveSync]
 [-DomainController <Fqdn>]
 [-Filter <String>]
 [-Monitoring]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-OWAforDevices]
 [-ResultSize <Unlimited>]
 [-SortBy <String>]
 [-RestApi]
 [-UniversalOutlook]
 [<CommonParameters>]

Parameters (12)

ParameterTypeRequiredWhat it controls
-Identity MobileDeviceIdParameter The Identity parameter specifies the mobile device that you want to view. You can use the following values that uniquely identifies the mobile device:
-Mailbox MailboxIdParameter yes The Mailbox parameter filters the results by mailbox. You can use any value that uniquely identifies the mailbox. For example:
-ActiveSync SwitchParameter The ActiveSync switch filters the results by Exchange ActiveSync devices. You don't need to specify a value with this switch.
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Filter String The Filter parameter uses OPATH syntax to filter the results by the specified properties and values. The search criteria uses the syntax `"Property -ComparisonOperator 'Value'"`.
-Monitoring SwitchParameter This parameter is available only in on-premises Exchange.
-OrganizationalUnit OrganizationalUnitIdParameter The OrganizationalUnit parameter filters the results based on the object's location in Active Directory. Only objects that exist in the specified location are returned. Valid input for this parameter is an...
-OWAforDevices SwitchParameter The OWAforDevices switch filters the results by whether Outlook on the web for devices is enabled for the device. You don't need to specify a value with this switch.
-ResultSize Unlimited The ResultSize parameter specifies the maximum number of results to return. If you want to return all requests that match the query, use unlimited for the value of this parameter. The default value is 1000.
-SortBy String The SortBy parameter specifies the property to sort the results by. You can sort by only one property at a time. The results are sorted in ascending order.
-RestApi SwitchParameter The RestApi switch filters the results by REST API devices. You don't need to specify a value with this switch.
-UniversalOutlook SwitchParameter The UniversalOutlook switch filters the results by Mail and Calendar devices. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.