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 :)
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
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. :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.