Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Can not remote to myself

$
0
0

Probably obvious once I see what is wrong but for now I'm baffled.
I'm running Powershell 3.0 and want to solve this before I upgrade to 4.

I stripped all the overhead I could

  • firewall disabled
  • no AD/domain just 2 Windows PCs that remote
  • Transport = HTTP
  • TrustedHosts = *
  • Listener Address = *
  • default ports are used 5985, 5986
  • running Powershell as Administrator

I have a Windows 7.1 PC and a Windows 8.0 PC and problem seems to be a configuration setting on the Windows 8 PC. The PCs are WAN connected over the internet. I configured the router to portforward the WSremoting ports to the Windows 8.0 PC

To avoid any typos with usernames and passwords I used the construct $cred=Get-Credential

I can remote van the PC-Win8 into PC-Win8 using localhost
I can remote van the PC-Win7 into PC-Win8 over the internet
But I can't remote van the PC-Win8 into PC-Win8 over the internet

Considering that the first 2 work I would assume remoting is setup correctly but to my surprise on the third one I get Access denied. Below the transcript. I only edited the prompt and the actual computer name.

 
from PC-Windows8.0
=================================================================================
PS C:\> $cred=Get-Credential
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:

PS C:\> Enter-PSSession -Credential $cred -ComputerName localhost

[localhost]: PS D:\> exit

PS C:\> Enter-PSSession -Credential $cred -ComputerName subdomain.mydomain.com
Enter-PSSession : Connecting to remote server subdomain.mydomain.com failed with the following error message :
Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ Enter-PSSession -Credential $cred -ComputerName subdomain.mydomain.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (subdomain.mydomain.com:String) [Enter-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed
 

PS C:\>


from PC-Windows7.1
=================================================================================
PS D:\> $cred=Get-Credential
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:

PS D:\> Enter-PSSession -Credential $cred -ComputerName subdomain.mydomain.com

[subdomain.mydomain.com]: PS C:\> exit

PS D:\>


Viewing all articles
Browse latest Browse all 6937

Trending Articles