We have over 450 mailboxes that need to be unable to connect a mobile device to our server unless they get it authorized by their director. Currently, we are still using the "Default" ActiveSync mailbox policy and I've created another one called "smartphone". I've added the "smartphone" policy to the mailboxes that are allowed to have access using a mobile phone. I'd like to disable all other users is there a shell command to do this for all "Default" ActiveSync mailbox policy users. Can someone direct me in the correct command to use? Also, will there be any issues in doing this too?
One way of accomplishing this is: Get-CasMailbox -Filter {ActivesyncMailboxPolicy -eq $null} | Set-CasMailbox -activesyncenabled $false *Note: as with all scripts/downloads from the web, try this on a test box or against 1 or 2 users first before running it in production. To re-enable all the users disabled using the above cmdlet, simply use: Get-CasMailbox -Filter {ActivesyncMailboxPolicy -eq $null} | Set-CasMailbox -activesyncenabled $true -- Bharat Suneja Microsoft Corporation blog: exchangepedia.com/blog This posting is provided "AS IS" with no warranties, and confers no rights. Please do not send email directly to this alias. This alias is for newsgroup purposes only. ---------------------------- "Penny Miller" wrote in message news:2FE8D139-2A7D-4EA8-91B9-4C9F97B80CE0@microsoft.com... > We have over 450 mailboxes that need to be unable to connect a mobile > device to our server unless they get it authorized by their director. > > Currently, we are still using the "Default" ActiveSync mailbox policy and > I've created another one called "smartphone". I've added the "smartphone" > policy to the mailboxes that are allowed to have access using a mobile > phone. > > I'd like to disable all other users is there a shell command to do this > for all "Default" ActiveSync mailbox policy users. Can someone direct me > in the correct command to use? Also, will there be any issues in doing > this too?