Moving Mobile Devices

Moves the specified Mobile Device object into the given target container.


Examples:


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


The code below moves the Mobile Device "Android_HTC_01" from the context "emdb:\rootDSE\Managed Mobile Devices\HTC" to "emdb:\rootDSE\Managed Mobile Devices\Chicago" using the objetct's MoveTo()-method:


$MyMobileDevice = Get-EmdbMobileDevice "emdb:\rootDSE\Managed Mobile Devices\Android_HTC_01"

$MyDestination = Get-EmdbOrganizationalUnit "emdb:\rootDSE\Managed Mobile Devices\Chicago"

$MyMobileDevice.MoveTo($MyDestination)


This one moves the Mobile Device "IOS_IPHONE_05" from the context "emdb:\rootDSE\Managed Mobile Devices\Chicago" to "emdb:\rootDSE\Managed Mobile Devices\Apple\" by utilizing the Move-Item cmdlet:


Move-Item -Path "emdb:\rootDSE\Managed Mobile Devices\Chicago\IOS_IPHONE_05" -Destination "emdb:\rootDSE\Managed Mobile Devices\Apple\"


Note: The functionality described here is available for FrontRange DSM 7.1 and above only.