Alan's sysadmin Blog

Working smarter not harder

Add Database Copy to Exchange 2010 Database

Posted by Alan McBurney on September 3, 2012


This is a simple scripts that will create a database copy for existing databases on a specific server

#Begin Script
$MainDBServer = Read-Host “Enter Mailbox Server where Databases are located”
$ReplicaServer = Read-Host “Enter Mailbox Server where existing DBs are to be replicated to”
$DBs = Get-MailboxDatabase -Server $MainDBServer
foreach ($DB in $DBs) {Add-MailboxDatabaseCopy $DB -MailboxServer $ReplicaServer -ActivationPreference “2”}
#End Script

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: