Membru care solicită informaţii

Enable PowerShell Remoting problem

Întrebare

I installed Evaluation version of Windows 2016 and 2019 Standard. I trying configure PS Remoting and I have problem with it.

System is clear, I installed system and join to domain only.
After Enable-PSRemoting command I don't have any errors etc.

When I use winrm command:

PS C:\Windows\system32> winrm quickconfig
WinRM service is already running on this machine.
WinRM is already set up for remote management on this computer.

Firewall is off for all profiles.

For example bellow command:

PS C:\Windows\system32> Enter-PSSession -ComputerName localhost
Enter-PSSession : Connecting to remote server localhost failed with the following error message : The client cannot con
nect to the destination specified in the request. Verify that the service on the destination is running and is acceptin
g requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly
IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and conf
igure the WinRM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ Enter-PSSession -ComputerName localhost
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (localhost:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed

PS C:\Windows\system32> Enter-PSSession -ComputerName localhost
Enter-PSSession : Connecting to remote server localhost failed with the following error message : The client cannot con
nect to the destination specified in the request. Verify that the service on the destination is running and is acceptin
g requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly
IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and conf
igure the WinRM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ Enter-PSSession -ComputerName localhost
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (localhost:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed

I only have Win10 Pro to test with so I apologize if this does not apply to the versions that you are testing.

Your command "Enter-PSSession -ComputerName localhost" is remoting into the machine that you are already logged on to. That's not real remoting. Have you tried connecting from a second machine using the first computer's name?

When I tried it on my test VM, I got an access denied when running as a standard user, but it worked when I ran it from an admin Powershell prompt.

I wasn't sure why you wanted to test "localhost", so I just wanted to point that out.

I found my stiupid problem. Long time ago I set 10.10.10.0/24 value for IPV4Filter. And it was wrong. Should be 10.10.10.1-10.10.10.254, or * and this value was propagate via GPO. I changed this and everything was start works.

Hi,
Was your issue resolved?
If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
If no, please reply and tell us the current situation in order to provide further help.
Best Regards,
Lee