![]() Connecting to remote server failed with the following error message: The WinRM client cannot process the request. In our case when we tried to run the previous command to connect Exchange 2010 we’ve received an error: How to connect and manage Office 365 using PowerShell.įor Office 365: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $LiveCred -Authentication Basic –AllowRedirectionįor Exchange Server 2010, 2013, 2016, and 2019: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $LiveCred If you are trying to connect to Office 365, specify your Office 365 tenant admin credentials:.Run the following command to save your administrator’s credentials into the PowerShell variable: $LiveCred = Get-Credential. ![]() Run the Windows PowerShell CLI as Administrator.Connecting Office 365/Exchange from PowerShellįirst, you need to connect to your Office 365 or on-premises Exchange tenant.
0 Comments
Leave a Reply. |