I am not able to connect to remote machine using powershell. The procedures i did is:
- Enable-PSRemoting -Force
- Set-Item WSMan:\localhost\Client\TrustedHosts *
- restart-Service winrm
- Enter-PSSession IpAddress
When i run the last step (4th one) from my server machine i am getting an error like:
Enter-PSSession : Connecting to
remote server failed with the
following error message : Access is
denied.
I have tried all the above 4 steps in both client and server machine. Please help
Thanks
Prav
Best Answer
Check the port on the remote machine
Then connect with the correct port