Connect-Exchange

SYNOPSIS

A quick function to connect to Exchange Servers.

SYNTAX

Connect-Exchange [-Server] <Object> [-Credential <PSCredential>]

DESCRIPTION

A wrapper function for New- and Import-PSSession to make connecting to remote Exchange Servers easier.

EXAMPLES

Example 1

PS C:\> Connect-Exchange mail.ntsystems.it -Credential (Get-Credential)

This example prompts the user for credentials and connects to the server at mail.ntsystems.it using the specified credentials.

PARAMETERS

-Credential

Specify the account used to connect to the Server.

Type: PSCredential
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Server

Specify the name of the Exchange Server to connect to.

Type: Object
Parameter Sets: (All)
Aliases: 

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

INPUTS

System.Object

OUTPUTS

System.Object

NOTES