Home > Microsoft Exchange Tips > Exchange Server Administration Tips > Disable ActiveSync in bulk with Exchange Management Shell commands
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

Disable ActiveSync in bulk with Exchange Management Shell commands


Will Schmied, Contributor
04.29.2009
Rating: -4.00- (out of 5)


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


In an organization that handles sensitive data, such as medical records or financial information, administrators must actively protect that data from leaking out of the network. In an Exchange Server 2007 organization with more than 5,000 users, one way to do this is to disable ActiveSync.

ActiveSync is enabled by default in Exchange 2007. By disabling ActiveSync for all Exchange users -- except those explicitly authorized to use it -- you move one step closer to limiting potential data loss. Disabling ActiveSync can also help you understand what's happening within your network.

The simplest way to disable ActiveSync for several users is to apply the following Exchange Management Shell (EMS) script.

[IMAGE]
(Click on script for enlarged view and script download.)

Note: This script was adapted from Microsoft TechNet's Script Center.

To ensure that this script works correctly, save it with a .PS1 extension and provide a text-based input file of recipients in the location of the variable $SourceFile for it to run against. I chose to use the Exchange alias as my input values in this list because it is a globally unique value in any Exchange organization.

After the script runs, check your log file to see if there were any issues when disabling ActiveSync. When running this for more than 5,000 recipients, I had no errors. You should receive similar results.

If you already have a group of autho...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Exchange Server Administration Tips
Remove Exchange 2003 objects from AD to install Exchange 2010
Don'ts for optimal Exchange 2007 mailbox server efficiency
Is your Exchange 2007 hub transport server healthy?
Avoid Outlook 2007 performance issues during repairs
Developing an Exchange 2007 server role DR plan
How DSAccess service improves Exchange Server 2007 reliability
An introduction to the Exchange Remote Connectivity Analyzer tool
Monitor Exchange 2007 with disk- and RPC-related counters
DPM 2007 replica inconsistencies in Exchange databases
Track Exchange 2007 mailbox server health using database counters

Microsoft Exchange Server 2007
How to install Forefront Security for Exchange Server
Displaying Exchange 2007 public folders in SharePoint
Don'ts for optimal Exchange 2007 mailbox server efficiency
Is your Exchange 2007 hub transport server healthy?
Top 5 Exchange ActiveSync tips
Two useful tools for documenting an Exchange Server installation
Controlling spam in Exchange 2007 at the edge transport server level
Restore Exchange storage groups with DPM 2007
How a hosted Exchange service can help you
Email issues after configuring hosted Exchange server on laptop
Microsoft Exchange Server 2007 Research

Mobile Devices
Top 5 Exchange ActiveSync tips
Windows Mobile 6.5 touts Internet Explorer, OWA improvements
Windows Mobile 6.5 touts ActiveSync and Outlook Mobile improvements
What are your options for sending text messages from Outlook 2007?
Using Mobile Device Manager 2008 server roles in Exchange 2007
Understanding Exchange Server 2007 SP1 mobile security settings
Synchronized Exchange mobile device showing deleted appointment
Which ActiveSync authentication method is best for your mobile device?
Configuring ActiveSync authentication in Exchange Server 2007
Performing a remote wipe on ActiveSync devices in Exchange Server 2007

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


rized ActiveSync users and want them to continue using ActiveSync, there are two options.

  1. Disable ActiveSync for all users. Then run a modified version of the script using ActiveSyncEnabled $true to re-enable ActiveSync for users who were previously placed into your text-based input file.
  2. The other option is to ensure that those users are not included in your original text-based input file. Check that you have the correct recipients in the text file for the disable/enable operation you want to perform, or you'll have to repeat the process to get it correct.

About the author: Will Schmied is a senior systems administrator for a children's research hospital. He holds numerous Microsoft MCITP, MCTS and other certifications, and has been involved with Exchange and Blackberry for many years. He has also been actively involved with IT certification and training for several years, writing or contributing to several dozen books and has founded the popular certification portal, MCSE World. Will also manages the Tales of a System Administrator blog.

Do you have comments on this tip? Let us know.

Please let others know how useful this tip was via the rating scale below. Do you know a helpful Exchange Server, Microsoft Outlook or SharePoint tip, timesaver or workaround? Email the editors to talk about writing for SearchExchange.com.

Rate this Tip
To rate tips, you must be a member of SearchExchange.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts