Procedure for puttin exchange into maintenance mode

I have a Barracuda load balancer in front of two Exchange mail servers. I want a procedure for taking on load balancer out of service gracefully forcing all connections on the "maintenance server" to connect to the live server
Email-LB.vsdx
Barry FieldsIT managerAsked:
Who is Participating?
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.

Jeff GloverSr. Systems AdministratorCommented:
You want to take the Load balancer out of service? Not sure what you mean by Maintenance server here. Are you trying to put an exchange server in Maintenance mode to update it and make all connections go to the live server? If so, Do you need the commands to put an exchange server in Maintenance mode? What version of Exchange? The commands are different for 2010 vs 2013/2016. Once the server is in maint mode, you should be able to just down the link in the load balancer.
  If you are trying to completely remove the load balancer, then it is a matter of using DNS to redirect connections.
Barry FieldsIT managerAuthor Commented:
You got it, I want to put the Exchange server into maintenance mode in order to update it
Jeff GloverSr. Systems AdministratorCommented:
OK, I do this with a series of Powershell commands (from Exchange management shell) Michael Van Horenbeek wrote scripts to do this. You can get them here https://vanhybrid.com/2015/07/20/script-putting-exchange-server-2013-into-maintenance-mode/   I prefer to use the individual commands. I have attached them in the text file. Just substitute the name of your exchange server where indicated.
Exchange-Maintenance-Mode.txt

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
Price Your IT Services for Profit

Managed service contracts are great - when they're making you money. Yes, you’re getting paid monthly, but is it actually profitable? Learn to calculate your hourly overhead burden so you can master your IT services pricing strategy.

Barry FieldsIT managerAuthor Commented:
Jeff one last question; How do you verify all components except Monitoring and RecoveryActionsEnabled are set to Inactive



Get-ServercomponentState -Identity <ServerName> | ft Component,state -Autosize
(verify that all components except Monitoring and RecoveryActionsEnabled are set to Inactive. This means you are in maint mode)
Jeff GloverSr. Systems AdministratorCommented:
The output of that command will list all the components and will show either active or inactive. This step is not really a required step, just a check I like to do.  You can run that command on an Exchange server at anytime. You may not see all components as active depending on what Exchange is doing at the time but it gives you a pretty good idea.
Barry FieldsIT managerAuthor Commented:
THANKS
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.