While running a task, you encountered the following error:
Fail to Init PowerShell session due to : Connecting to remote server outlook.office365.com failed with the following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic.
Possible causes:
1. This error can occur if there are proxy settings setup in Internet Explorer | Internet Options | Connections | LAN Settings, which WinHTTP hasn't been configured to use.
2. PowerShell execution policy has not been correctly configured.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center