Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

December 02, 2004 12:00 AM

ExchMbx: Swiss Army Knife for Exchange

Windows IT Pro
InstantDoc ID #44666
Rating: (0)

Everywhere I go (except on airplanes), I carry a Swiss Army knife. Over the years, my knife has helped me fix Marine Corps helicopters, open countless FedEx boxes, pull more than a few splinters, and hammer on the occasional stubborn computer. I can't imagine how I got along without this wonderful tool. In the same vein, I wonder how I ever managed Exchange Server systems without ExchMbx, a free command-line tool from joeware ( http://www.joeware.net/win/free/tools/exchmbx.htm ).

ExchMbx provides a great deal of handy functionality for creating and managing mailboxes. The tool's five primary functions are as follows:

- To create one or more mailboxes in a specified mailbox database
- To move specified mailboxes to a specified mailbox database
- To mail-enable users, groups, and contacts
- To remove all Exchange attributes from a specified set of objects
- To set the Internet mail encoding format to be used for a mail-enabled object

This functionality would be useful and valuable all by itself because most existing alternatives require that you write your own scripts or adapt the sample scripts posted on Microsoft TechNet. But wait! There's more! ExchMbx features a number of nifty touches that show careful attention to ease of use. For example, you can specify the mailbox database in the URL format that Exchange uses natively (e.g., cn=Mailbox Database,cn=First Storage Group,cn=InformationStore,cn=Exchangeserver,cn=Servers,cn=First Administrative Group) or as a simple triplet of server, storage group, and database (e.g., "Batman:SG1:Users A-L"). This option makes it much easier to get the right mailbox database without making frustrating typos.

Another example: You can easily pipe lists of distinguished names (DNs) to ExchMbx by using standard Windows input mechanisms. You can create a thousand mailboxes, no problem. For moving, mail-enabling, or clearing attributes of objects, you can specify whether you want to process all objects (using the -unsafe parameter), the first N objects (using -safety N), or the first N objects (using -upto N). These options make it easy to accomplish such tasks as moving the first 100 mailboxes that can be moved, as in the command

exchmbx –move MDB –upto 100

or stripping out all Exchange attributes, as in the command

exchmbx –clear –unsafe If you combine ExchMbx with joeware's AdFind utility, you can easily run ExchMbx on the result of Active Directory (AD) queries. Doing so lets you quickly perform tasks that would be difficult or time-consuming if you were to use only native Windows GUI tools. For example, you can easily find a user by name and mail-enable the associated object, or you can move all the mailboxes for users in a specified office from one server to another.

Joeware has some other useful tools, but I'll leave them for you to discover. In the meantime, remember that like a pocketknife, these tools can be dangerous if misused--but their power and utility outweighs the danger as long as you're careful.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.