WinRM issues using add/remove features using Server 2012 r2 Server Manager

8,942

The following key was missing from the registry.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Service]
"allow_remote_requests"=dword:00000001

Added the key and restarted the Windows Remote Management service and SERVER1 can now refresh status with SERVER2.

Did a quick check on the Listener for WinRM and found it was listening through port 5296 but had no firewall rule to allow it through. Made a firewall rules and now both servers are talking.

To check your WinRM comms go to CMD and run the following commands.

winrm qc
winrm e winrm/config/listener
Share:
8,942

Related videos on Youtube

JukEboX
Author by

JukEboX

Information Security Analyst

Updated on September 18, 2022

Comments

  • JukEboX
    JukEboX over 1 year

    I am trying to get 2 servers to talk to each other through server manager both running Windows Server 2012 R2.

    SERVER1 is able to refresh all the server information without a problem. I can see all the status of SERVER1 & 2 without a problem. SERVER2 says that the RPC server is unavailable and that it cannot find SERVER 1.

    When I do the following command winrm id -r:SERVER2 from SERVER1 I get an error 80338126 mainly meaning it cannot sea SERVER2.

    winrm quickconfig shows that it is setup and manageable on SERVER2. It is allowed through the firewall using GPO which is applied to both servers.

    I have tried these fixes: Fix 1 Fix 2 Fix 3 Fix 4

    I have checked the following:

    • System is listening on 127.0.0.1, Network IP Address, ::1
    • WinRM is configured and is Remotely Manageable
    • WinRM Enumerate is showing listening on Port 5296 and is allowed through firewall
    • Remote Shell is set to Not Configured
    • Server has been Restarted

    Is there anything else I can do? WinRM should be working. This is a production server and is configured to run MULTIPLE things. I cannot rebuild it.

    UPDATE: I found a firewall rule called "HTTP Through TLS/SSL" set to "public" instead of Private/Domain. I changed that. SERVER2 can not WinRM to SERVER1 but using the Server Manager I get this error:

    Configuration Refresh failed with the following errors. The metadata failed to be retrieved from the server do to the following error. The WS-Management service cannot process the request. The resource URI was not found in the catalog. The catalog contains the metadata that describes resources or logical endpoints.

  • RalfFriedl
    RalfFriedl over 4 years
    Did you intentionally mess up the formatting?
  • vjones
    vjones over 4 years
    Welcome to Serverfault. Please try to edit your post and use the editing tools to format your batch file so that we can read and understand it. Also an explanation of how it addresses the problem would be helpful as well.