Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Tue, 23 Sep 2008 13:58:48 -0700,    group: microsoft.public.exchange.mobility        back       


Shell command to Disable ActiveSync for Default users.   
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?
date: Tue, 23 Sep 2008 13:58:48 -0700   author:   Penny Miller

Re: Shell command to Disable ActiveSync for Default users.   
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?
date: Tue, 23 Sep 2008 14:33:35 -0700   author:   Bharat Suneja [MSFT]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us