Stop-EaiDAGMaintenanceMode

Module: Exchange_AddIn
Applies to: Exchange Server 2010, Exchange Server 2013, Exchange Server 2016, Exchange Server 2019

Use the Stop-EaiDAGMaintenanceMode function to bring an Exchange server out of maintenance mode to be able to properly perform updates and/or reboots on an Exchange Server.

Stop-EaiDAGMaintenaceMode

SYNOPSIS

Function to take an Exchange 2010/2013/2016/2019 Server out of Maintenance Mode.

Credits:

Exchange Server 2013 Maintenance Mode Script (Stop):
https://gallery.technet.microsoft.com/Exchange-Server-2013-77a71eb2

Checking for admin credentials:
http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/11/check-for-admin-credentials-in-a-powershell-script.aspx

SYNTAX

Stop-EaiDAGMaintenaceMode [-Server] <String> [<CommonParameters>]

DESCRIPTION

This function is created to take an Exchange 2013/2016 Server out of Maintenance Mode.
It will detect if the server is a Mailbox Server and then take appropriate additional actions, if any.

EXAMPLES

EXAMPLE 1

Running the following command will take a server called "Server1" out of Maintenance Mode:

Stop-EaiExchangeServerMaintenanceMode -Server Server1

PARAMETERS

-Server

determine what server to put in maintenance mode

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.