mailbox database failover

Hi ,

I need a cmdlet or script which can be used in below task.

15 databases are mounted in on DAG which consist 4 member servers. All db's are mounted on MBX01 and MBX02,MBX03 and MBX04 has healthy copy of dbs.

I want to mount all 15 dbs on MBX02 adn reboot the MBX01 and then again i want to mount all dbs back to MBX01.

Please help
LVL 1
Manish KumarSr. Technical ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph DalyCommented:
You could probably do something like below.

Get-MailboxDatabase * | Move-ActiveMailboxDatabase -ActivateOnServer 'servername' -MountDialOverride 'None' -Confirm:$false -TerminateOnWarning

This will move all mailboxes to the server you specify.

Alternatively if you want to be more specific you can do

Get-MailboxDatabase {databasename} | Move-ActiveMailboxDatabase -ActivateOnServer 'servername' -MountDialOverride 'None' -Confirm:$false -TerminateOnWarning
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Will SzymkowskiSenior Solution ArchitectCommented:
I personally would not do this via a script as you want to make sure that databases are transferred correctly one by one. You also need to take into consideration what version of Exchange you are running. If you are only running standard then you are limited to 5 databases on a single server.

I don't see the need to use a script for this, be patient and wait for the mailboxes to fail-over and monitor this activity.

Will.
0
Manish KumarSr. Technical ConsultantAuthor Commented:
Thanks Joseph,

It was exactly what i need.
0
Manish KumarSr. Technical ConsultantAuthor Commented:
Thanks Will,

Your suggestion is really valuable and i performed it one bye one by using cmdlet.

Task has been completed successfully
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.