Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 8820

Removal of Active Sync Devices which are quarantined for more than a month for a particular OU in Exchange 2010

$
0
0

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)


Viewing all articles
Browse latest Browse all 8820

Trending Articles