I have requirement, where in I need to keep devices only with
DeviceUserAgent = RIM and WorxMail
and remove other devices in the existing ActiveSyncAlloedDevicesIDs. Not sure if the below mentioned shell commands can be used, as it is required to corrected.
Get-ActiveSyncDevice | where {$_.DeviceUserAgent -notcontains BB*, WorxMail*} Remove-ActiveSyncDevice –Confirm:$True
Get-ActiveSyncDevice –filter {DeviceUserAgent –ne “BB*”, "WorxMail*" } | Remove-ActiveSyncDevice –Confirm:$True
If there are any scripts which can do it please share.
Thanx
Gautam.