Hi Everyone,
Me again! Sorry to be a pain!
So we have a proxy in place on our systems which was preventing us from accessing Powershell and we were seeing the usual WinRM message. This is no longer an issue after adding $proxyOptions = New-PSSessionOption -ProxyAccessType IEConfig to the script.
When I try and connect to Lync Online via PowerShell I can’t seem to get access for the life of me. I always get the following:
New-PSSession : [ps.outlook.com] Connecting to remote server ps.outlook.com failed
with the following error message : WinRM cannot process the request. The following
error occurred while using Kerberos authentication: Cannot find the computer
ps.outlook.com. Verify that the computer exists on the network and that the name
provided is spelled correctly. For more information, see the
about_Remote_Troubleshooting Help topic.
At line:1 char:6
- $a = New-PSSession -ConnectionUri https://ps.outlook.com/powershell - …
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OpenError: (System.Manageme…RemoteRunspace:RemoteRun
space) [New-PSSession], PSRemotingTransportException - FullyQualifiedErrorId : NetworkPathNotFound,PSSessionOpenFailed
- CategoryInfo : OpenError: (System.Manageme…RemoteRunspace:RemoteRun
If I try and incorporate the proxy line into the script it doesn’t appear to make any difference. Have any of you guys come across this in the past?