Hi,
I am unable to remote to a server to import Lync modules. Here is the code (w/ server name removed):
$credential = get-credential
$session = New-PSSession -ConnectionUri 'https://<enter server>/ocspowershell' -credential $credential
Import-Pssession $session
Here is the error:
Connecting to remote server ***** 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.
1. verified that wsman service is running.
2 . Issued Enabled-PsRemoting for good measure
3. port 5985 is allowed.
4 . I can remote to the server successfully with: enter-pssession -computername
5. When I logon locally to server an issue the code, it works.
Thank you for any insight provided.
Tim
I am unable to remote to a server to import Lync modules. Here is the code (w/ server name removed):
$credential = get-credential
$session = New-PSSession -ConnectionUri 'https://<enter server>/ocspowershell' -credential $credential
Import-Pssession $session
Here is the error:
Connecting to remote server ***** 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.
1. verified that wsman service is running.
2 . Issued Enabled-PsRemoting for good measure
3. port 5985 is allowed.
4 . I can remote to the server successfully with: enter-pssession -computername
5. When I logon locally to server an issue the code, it works.
Thank you for any insight provided.
Tim
Tim