Server Parameter (Connect-Exchange Cmdlet)
Specifies the URL of the Microsoft Exchange server to connect to.
Syntax
Connect-Exchange -Server string
Data Type
cstr
Default Value
""
Remarks
Set this property to the full URL of the Exchange Web Services (EWS) endpoint.
- For Exchange Online: https://outlook.office365.com/EWS/Exchange.asmx
- For Exchange On-Premises: https://your-mail-server/EWS/Exchange.asmx
This property is useful for directing the cmdlet to the correct EWS endpoint based on your deployment, whether cloud-based or on-premises.