Testing Mobile Devices

Tests if the specified Mobile Device(s) exist, and returns true if the test succeeds and false if it fails.


Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


In this first, easy example, we check, if there are objects of type "Mobile Device" anywhere in your DSM environment:


Test-EmdbMobileDevice -Path "emdb:\" -Recurse


The command below tests, if the Mobile Device object "Mikes iPhone 7" is present in the path "emdb:\rootDSE\Managed Mobile Devices\Solys, Inc.":


Test-EmdbMobileDevice "emdb:\rootDSE\Managed Mobile Devices\Solys, Inc.\Mikes iPhone 7"


Finally we check, if we have Mobile Device objects having "iPhone" in their name anywhere underneath "Managed Mobile Devices":


Test-EmdbMobileDevice "emdb:\rootDSE\Managed Mobile Devices\*iPhone*" -Recurse