Connect-EaiExchangeServer
Module: Exchange_AddIn
Applies to: Exchange Server 2013, Exchange Server 2016, Exchange Server 2019
Use the Connect-EaiExchangeServer function to connect to a remote PowerShell session on an Exchange Server.
Connect-EaiExchangeServer
SYNOPSIS
Connects to a designated Exchange in the computer parameter
SYNTAX
Connect-EaiExchangeServer [-Computer] <String> [[-Prefix] <String>] [<CommonParameters>]
DESCRIPTION
Screen output of current status of DAG environment.
Lists current Databases, what the status of each database is, and how many copies are available for each Database.
EXAMPLES
EXAMPLE 1
Connect-EaiExchangeServer -Computer MBX01
To connect up to an Exchange server on named MBX01 and not use cmdlet prefix option.
EXAMPLE 2
Connect-EaiExchangeServer -Computer MBX04 -Prefix OnPrem
This connects to Exchange server MBX04, and adds the prefix OnPrem to all nouns in the remote PowerShell session.
EXAMPLE 3
Connect-EaiExchangeServer -Computer EX12 -Prefix OP
This connects to Exchange server EX12, and adds the prefix OP to all nouns in the remote PowerShell session.
PARAMETERS
-Computer
Enter a single computer name to create a remote PowerShell session.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Prefix
This is an optional parameter to add a prefix value to the Nouns in the remote PowerShell session to separate from other imported PowerShell sessions in the same PowerShell run space.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
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.