$User = Read-Host -Prompt "Who's Mobile Devices are you going to nuke? Enter username"
$Devices = Get-MobileDevice -Mailbox $user
ForEach ($Device in $Devices)
{
Remove-MobileDevice $Device
}
Clear-Variable User,Name,Devices
But I keep getting this: Cannot process argument transformation on parameter 'Identity'. Cannot convert the "Persons Name\ExchangeActiveSyncDevices\iPad§Q5F3123456KHLAGK41P7VO" value of type
"Deserialized.Microsoft.Exchange.Data.Directory.SystemConfiguration.MobileDevice" to type "Microsoft.Exchange.Configuration.Tasks.MobileDeviceIdParameter".
+ CategoryInfo : InvalidData: (:) [Remove-MobileDevice], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Remove-MobileDevice
+ PSComputerName : outlook.office365.com
Set-CASMailbox username -ActiveSyncDeviceIDs $null
as a finisher. Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE