What is more, some options cannot be passed as New-PSSession arguments and must be specified as New-PSSessionOption, and only then passed together as a variable. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $LiveCred -Authentication Kerberos Depending on your target environment configuration, you may be required to specify the authentication method as an argument ( -Authentication Kerberos), connect via http instead of https, etc., as shown in the example below: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $LiveCredīe advised the method shown above is not universal. Provide the target server administrator credentials:Ĭonfigure the connection to your Exchange Server 2010, 2013, 2016, and 2019: If the execution policy is set to Restricted, change it to RemoteSigned or Unrestricted (this might need to be executed from PowerShell in the Run as administrator mode): Check the requirements for on-premises Exchange Server.troubleshoot PowerShell errors that you may encounter during the process.Ĭonnecting to on-premises Exchange server.create a remote PowerShell connection to your Exchange Online organization.connect to your on-premises Exchange servers via remote PowerShell session.
You want to set up a remote session to an Exchange server via PowerShell.
#Exchange connect to server to view them how to
How to connect to an Exchange server via PowerShell