1

I am trying to connect to the raspberry pi 2 and change the device name through PowerShell. On entering the following command I get an error.

Enter-PsSession -ComputerName XX.XX.XXX.177 -Credential XX.XX.XXX.177\Administrator

Error:

Enter-PsSession : Connecting to remote server XX.XX.XXX.177 failed with the following error message : WinRM cannot complete the operation. Verify that th 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 fo public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic At line:1 char:1 + Enter-PsSession -ComputerName XX.XX.XXX.177 -Credential XX.XX.XXX.177 ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (XX.XX.XXX.177:String) [Enter- SSession], PSRemotingTransportException + FullyQualifiedErrorId : CreateRemoteRunspaceFailed

ANy leads / help will be highly appreciated. Thanks in advance :)

7
  • I presume your Pi is running the Windows 10 IoT bits? Commented Jun 6, 2015 at 2:20
  • Did you set up PSRemoting? What did you do for troubleshooting? Commented Jun 6, 2015 at 4:01
  • @PeterHahndorf: Yes, I did setup the PSRemoting. tried changing ipAddress\Administraton to Administrator@ipAddress. Tried by disabling firewall as well. Nothing works as of now. Commented Jun 6, 2015 at 4:45
  • Does Test-WSMan... work? Commented Jun 6, 2015 at 5:11
  • @PeterHahndorf: It gives the following error "Unencrypted traffic is currently disabled in the client configuration." Commented Jun 6, 2015 at 5:25

2 Answers 2

1

This Answer here seems to do the trick without having to re-flash the SD Card

ADDED BASED ON FEEDBACK

The link essentially suggests that the user run the following commands when trying to establish the connection

net start WinRM
Set-Item WSMan:\localhost\Client\TrustedHosts -Value MINWINPC
remove-module psreadline -force
Enter-PsSession -ComputerName MINWINPC -Credential MINWINPC\Administrator

I believe the "magic" difference is the forced command:

remove-module psreadline -force
Sign up to request clarification or add additional context in comments.

2 Comments

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.
why did i get a down vote? my post actually fixes the problem. I just updated the answer to include the fix
0

As per the recommendations in comments I tried various things. I did the PSRemoting setup

Enable -PSRemoting -force

Finally, I removed the memory card from RaspberryPi formatted again and reinstalled Windows 10 IOT Core and then it worked perfectly fine. :)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.