Pages

how to Enable & Disable Active Sync For all user Exchange 2007 and 2010

Tuesday, September 30, 2014

Enable & Disable Active Sync For all user Exchange 2007 and 2010

To see ActiveSync Enabled users run fallowing PS (  Get is harmless, as the PS does not make any changes, you need to watch out for set function (-: )

Get-CASMailbox -resultSize unlimited -filter {activeSyncEnabled -eq $true}

image
Disable Active Sync for All Users
get-Mailbox | set-CASMailbox -ActiveSyncEnabled:$False

image
Enable ActiveSync for All Users
get-Mailbox | set-CASMailbox -ActiveSyncEnabled:$True

Now we will disable it for Everyone but for some selected users with fallowing Script

Get-Mailbox | set-CASMailbox -ActiveSyncEnabled:$True | Get-content C:\ActiveSyncEnabledUsers.txt

image

you may get warning like this 


if you have more than 1000 mailbox use the following 

get-mailbox -ResultSize Unlimited | set-CASMailbox -ActiveSyncEnabled:$True | Get-content C:\ActiveSyncEnabledUsers.txt

On the C drive of my server I have created simple TXT file for the output
clip_image001
image
 last one
Get-Mailbox | ForEach {Get-ActiveSyncDeviceStatistics -Mailbox:$_.Identity} | ft DeviceFriendlyName, Devicetype, DeviceUserAgent

enjoy 


No comments:

Post a Comment

 

Search This Blog

Most Reading

Facebook Fans

About Roaya Electronic

click on vizvon the biggest online shopping in Egypt cheapest online shopping in Egypt ever all product guaranteed free return for 30 days all product guaranteed by original manufacturer first website in Egypt accept Paypal all our woman corner product are exported vizvon have special department for it needs ex " server - firewall - laptop - switches - UPS " and more Welcome to vizvon.com