Our requirement is to run a powershell command to remove the quarantined activesync devices whose last sync date is more than a month for a particular OU
I have a command to remove the active sync devices on the entire organization
Get-ActiveSyncDevice | Where {$_.DeviceAccessState -eq "Quarantined" -and $_.FirstSyncTime -lt (Get-Date).AddMonths(-1)} | Remove-ActiveSyncDevice –Confirm:$false
Can someone modify the command where it can remove the active sync devices which are in Quarantine for more than a month.
Anil Kumar (MCITP)