Exchange & Outlook UPDATE, Exchange Edition, January 6, 2005

Free Whitepaper: High Availability and Disaster Recovery for Exchange!

http://www.neverfailgroup.com/welcome.asp?promo=exchangeadmin1-6-05

Saving Time and Money with Network Faxing

http://www.windowsitpro.com/whitepapers/esker/networkfaxing/index.cfm?code=0106exch_s

===============

1. Commentary

- Mounting and Dismounting Databases with CDOEXM

2. Resources

- Featured Thread: Public Folders and External Email
- Outlook Tip: Customizing the Outlook 2003 Form

3. New and Improved

- Automate Exchange Backup and Restoration

==========

~~~~ Sponsor: Neverfail ~~~~

Free Whitepaper: High availability and disaster recovery for Exchange!

Today, every company recognizes the downsides of downtime: significant productivity and profitability losses, but until now, businesses had limited choices among solutions that protect against downtime, either because of their cost or their complexity. Neverfail's "cluster-class" solution ensures server reliability, application availability and data protection--at a fraction of the cost and complexity of traditional alternatives. Learn how to keep your users connected to Exchange, no matter whether a failure occurs in the operating system, a hardware component, a software application, or somewhere within the network. To view a demo or access a free whitepaper:
http://www.neverfailgroup.com/welcome.asp?promo=exchangeadmin1-6-05

==========

Editor's note: Share Your Exchange Discoveries and Get $100

Share your Exchange Server and Outlook discoveries, comments, or problems and solutions for use in the Exchange & Outlook Administrator print newsletter's Reader to Reader column. Email your contributions (500 words or less) to [email protected] We edit submissions for style, grammar, and length. If we print your submission, you'll get $100.

==========

==== 1. Commentary: Mounting and Dismounting Databases with CDOEXM ====

by Paul Robichaux, Exchange Editor, [email protected]

I spend a fair amount of time reading the Microsoft public support Exchange newsgroups, where many of the same questions are asked over and over. This year I'd like to occasionally answer some of the more obscure questions in this column. This week, I decided to start with a real winner: How do you programmatically mount and dismount Exchange Server 2003 and Exchange 2000 Server databases? This task is fairly simple, but unless you spend a lot of time spelunking in the Microsoft Developer Network (MSDN) Collaboration Data Objects for Exchange Management (CDOEXM) documentation, you might not be aware of it. Here's a short script, in pieces, that mounts a mailbox database. The first piece of code defines the server (batman) and mailbox database ("Mailbox Store (BATMAN)"). It also creates two CDOEXM objects: The ExchangeServer object is used later, and the MailboxStoreDB object is used to mount and dismount the database.

strServerName = "batman"
strMDBName = "Mailbox Store (BATMAN)"
Set theServer = CreateObject("CDOEXM.ExchangeServer")
Set theMDB = CreateObject("CDOEXM.MailboxStoreDB")

The next piece of code connects to the server and finds the first storage group (SG). The StorageGroups property of the ExchangeServer object lists all the SGs on that server. VBScript doesn't have a good way to find the first item in a collection, which is why the code starts a "for each" loop, then immediately exits.

theServer.DataSource.Open strServerName
For Each sg In theServer.StorageGroups
theFirstSG = sg
Exit for Next

After you have the name of the first SG, mounting the store is a simple matter of constructing a URL to the database from a combination of the SG name and the database name, then using that URL to open the message database (MDB) object. After the object is open, you can mount or dismount it using the Mount and Dismount CDOEXM methods.

strURL = "LDAP://" & theServer.DirectoryServer & "/cn=" & strMDBName & "," & theFirstSG
theMDB.DataSource.Open strURL
theMDB.Mount

This script can be improved. It doesn't perform any error checking (e.g., it'll fail if you try to mount an already-mounted database), and it doesn't work with public folder databases (you'll need to use the CDOEXM PublicStoreDB object instead). It's not terribly useful for mounting or dismounting one database at a time, so a useful enhancement would be to automatically mount or dismount multiple stores at once. These changes are all simple to make, and after you understand the mechanism you can apply it to a lot of other database-related tasks (including creating and deleting databases and moving databases and log files).
On an unrelated note, I would be remiss not to mention the great tragedy that struck the coastal countries of southern Asia last month. I encourage you to consider donating to reputable relief agencies to assist in the rebuilding efforts. I was delighted to find out that Habitat for Humanity ( http://www.habitat.org ) is collecting donations specifically to assist with building houses for those left homeless by the tsunami.

==========

~~~~ Sponsor: Esker Software ~~~~

Saving Time and Money with Network Faxing

Despite the rise of e-mail and the Internet, fax continues to be an important means of business communication. Organizations can save significantly on long distance costs, increase worker productivity, and streamline their business processes simply by connecting a fax server to their local area network. In this free white paper, you'll understand the specific cost savings, security benefits, and productivity enhancements of implementing a fax server solution including the V.34 fax standard and how it can contribute to further productivity gains and cost reductions. Get this white paper now!
http://www.windowsitpro.com/whitepapers/esker/networkfaxing/index.cfm?code=0106exch_s

==========

==== Announcements ====

(from Windows IT Pro and its partners)

Are You a Hacker Target?

You are if you have an Internet connection faster than 384Kbps. In this free on-demand Web seminar, Alan Sugano will examine two attacks (an SMTP Auth Attack and a SQL Attack) that let spammers get into the network and relay spam. Find out how to keep the hackers out of your network and what to do if your mail server is blacklisted as an open relay. Register now!
http://www.windowsitpro.com/seminars/antispam/index.cfm?code=1227emailannc

Get David Chernicoff's Essential Guide to Blade Servers

The cost of setting up new servers, provisioning them, and managing their operation is a significant one, and reducing those costs results in quicker ROI and more easily justifiable initial expenses. Find out why blade server technology is an attractive methodology for addressing these concerns and implementing improvements in your server infrastructure.
http://www.windowsitpro.com/essential/index.cfm?code=103emailannc

Managing and Securing Corporate Email Forum: January 31 – February 2, 2004, Harrah's, Las Vegas

Spammers and negligent email users are draining your budget and resources! With more than 20 case studies, discussion groups and workshops, you'll walk away with end user strategies, proven to make your organization’s email safer. For a full agenda and registration information log on to http://www.iqpc.com/NA-2237-01/ITPRO or call 1-800-882-8684.

Is Your Messaging Infrastructure Ready for Tomorrow's Risks?

In this free Web seminar on February 17, 2005, Randy Franklin Smith reveals the new security threats as SPIM, spyware, phishing, and malware evolve and become tools for industrial espionage. You'll learn which kinds of attacks companies are reporting in increased numbers and the commonly held misconceptions about Microsoft security patches. Find out what threats deserve your attention. Register now!
http://www.windowsitpro.com/seminars/securemessaging/index.cfm?code=103emailannc

==== 2. Resources ====

Featured Thread: Public Folders and External Email

Our forum readers are having a conversation regarding public folders that can't receive external email. To join the discussion, visit http://www.windowsitpro.com/forums/messageview.cfm?catid=40&threadid=128680

Outlook Tip: Customizing the Outlook 2003 Form

by Sue Mosher, [email protected]
Q: I want to customize the contact form in Microsoft Office Outlook 2003 but design mode always displays the Outlook 2002 contact form. How can I customize the Outlook 2003 form, the one with the new picture control on it? Find the answer (and links to more great tips) at http://www.windowsitpro.com/microsoftexchangeoutlook/article/articleid/42532/42532.html

==== Events Central ====

(A complete Web and live events directory brought to you by Windows IT Pro: http://www.windowsitpro.com/events )

True High-Availability for Microsoft Exchange Web Seminar--February 3

Discover solutions that minimize the likelihood of downtime in your Exchange implementation and help to ensure continuous Exchange application availability. In this free Web seminar, learn how you can ensure high-availability through the use of tools that analyze and proactively monitor the health of your entire Exchange environment. Register now!
http://www.windowsitpro.com/seminars/highavailability/index.cfm?code=103emailannc

==== 3. New and Improved ====

by Angie Brew, [email protected]

Automate Exchange Backup and Restoration

Network Appliance released SnapManager 3.1 for Microsoft Exchange, a data-management solution for hosting and automating backup and restoration of Exchange Server-based storage groups (SGs). SnapManager lets you can choose the point in time you want to recover to, up to the minute. Depending on the nature of your restore requirement, you can also choose from different restore options: full Exchange Server content recovery, individual Exchange SG recovery, individual Exchange database recovery, and virtual disk recovery. The product lets you add storage without taking the Exchange server offline and features task-automation wizards. SnapManager supports Exchange Server 2003 and Exchange 2000 Server. For pricing, contact Network Appliance at 408-822-6000.
http://www.netapp.com

==== Sponsored Links ====

Data Protection from NSI and Microsoft

Instant recovery and data protection solutions for Exchange and SQL servers
http://ad.doubleclick.net/clk;12746138;8214395;l?http://www.protect-your-data.com

=========

~~~~ Contact Us ~~~~

About the newsletter -- [email protected]
About technical questions -- http://www.windowsitpro.com/forums
About product news -- [email protected]
About your subscription -- [email protected]
About sponsoring UPDATE -- [email protected]

===============

This email newsletter is brought to you by Exchange & Outlook Administrator, the leading publication for IT professionals managing, securing, optimizing, and migrating Exchange and Outlook. Subscribe today!

http://www.exchangeadmin.com/rd.cfm?code=00ep234xeb

Manage Your Account

You are subscribed as #EmailAddr#.

You received this email message because you subscribed to this newsletter on our Web site. To unsubscribe, click here:

http://www.windowsitpro.com/email/index.cfm?action=QuickUnsub&NewsletterID=3&email=#emailaddr# Thank you!

View the Windows IT Pro Privacy policy at http://www.windowsitpro.com/AboutUs/Index.cfm?action=privacy

Windows IT Pro a division of Penton Media Inc. 221 East 29th Street, Loveland, CO 80538, Attention: Customer Service Department
Copyright 2005, Penton Media, Inc. All Rights Reserved.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish