Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
PS H:\Desktop> New-PSSession -ComputerName xxxxx -Credential domain\username
New-PSSession : [xxxxxx] Connecting to remote server xxxxx failed with the following error message : The WS-Management service cannot process
the request. The service is configured to not accept any remote shell requests. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ComputerName xxxxxx-Credential domain\user
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : RemoteSessionDisallowed,PSSessionOpenFailed
As the error code says "The service is configured to not accept any remote shell requests."
This could be due to hardening of policies or something else.
My Question is what could be the actual reason and what is the workaround for this ?
The reason is that you have not correctly enabled remoting. There is no work around you must enable remoting correctly for your system and network type. THe support article will address some of these issues.
However, I am still getting the same error.
Test-WSMan command is confirming that PS remoting is successfully enabled and required services are running.
You need to follow all of the instructions. I see no way to help you as I do not have access to your systems and cannot gues at the remaining issue.
This forum is for scripting questions and not really scoped to help troubleshoot deployment issues. If you are not able to understand how to troubleshoot technical networking issues then I recommend either hiring a consultant or contacting Microsoft support.
Remember that you must determine whether this is a domain machine or a workgroup machine in order to know how to configure the endpoint systems.
You will also have issues when configuring PS 2 systems with PS 3 or later systems.
What Remote option are you using:
1. Run Remotely
2. Run Remotely RSEE
for 1. check if username/password are correct, also try to use client IP instead of name
for 2. Have you install RSEE service on client machine? Also double check client machine name
Olga. The New-PsSession command does not require or use RSEE. That is only used with PowerShell Studio remoting.
The issue is still that the WsRM/WsMan configuration is not set up correctly for the connection. The exception is "Open" failure. A credential failure would be "Access Denied". Test-WsMan Will only tell us that the service is running and listening.
This says that the remote is old:
ProductVersion : OS: 0.0.0 SP: 0.0 Stack: 2.0
Current versions return this: OS: 0.0.0 SP: 0.0 Stack: 3.0
Upgrading the client Power Shell version to 5.1 might fix this.
This topic is 6 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.