HomeSupercharger KBHow ToWinRM says "Unable to check the status of the firewall"

5.14. WinRM says "Unable to check the status of the firewall"

You may notice various errors such as:

Possible error #1 

Error location: In Log ->   Eventlog-ForwardingPlugin/Operational

Error code is 2150859027 and Error Message is <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859027" Machine="server.domain.org">
<f:Message>The WinRM client sent a request to an HTTP server and got a response saying the requested HTTP URL was not available. This is usually returned by a HTTP server that does not support the WS-Management protocol. </f:Message></f:WSManFault>.

Possible error #2

Error location: Powershell when running "WinRM QuickConfig"

 D:\>winRm quickConfig
WinRM service is already running on this machine.
WSManFault
    Message
        ProviderFault
            WSManFault
                Message = Unable to check the status of the firewall.

Error number:  -2147024894 0x80070002
The system cannot find the file specified.

Possible error #3

Error location: In Log ->   Eventlog-ForwardingPlugin/Operational

The forwarder is having a problem communicating with subscription manager at address http://server.domain.org:5985/wsman/SubscriptionManager/WEC.
Error code is 5 and Error Message is <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="5" Machine="server.domain.org">
<f:Message>Access is denied. </f:Message></f:WSManFault>

Solution

The default firewall rule may be corrupted or not functioning as expected.

Solution #1

Run the following command to create a new firewall rule for WinRM:

netsh advfirewall firewall add rule name="Windows Remote Management (HTTP-In)" dir=in action=allow service=any enable=yes profile=any localport=5985 protocol=tcp

Solution #2

Open the Windows Defender Firewall with Advanced Security MMC snap-in and use the Restore Default Policy action.

After the above, you might need to Retry your subscriptions in Event Viewer.

This page was: Helpful | Not Helpful