Winrm quickconfig can't complete correctly

Salam ELIAS 302 Reputation points
2026-10-22T17:58:27.89+00:00

I am trying to enable wsam on a laptop but always comes back with the following message

winrm quickconfig

WinRM service is already running on this machine. WSManFault Message ProviderFault WSManFault Message = WinRM firewall exception will not work since one of the network connection types on this machine is set to Public. Change the network connection type to either Domain or Pri ate and try again. Error number: -2144108183 0x80338169 WinRM firewall exception will not work since one of the network connection types on this machine is set to Public. Change the network connection type to either Domain or Private and try again.

when I check NICs, with

Get-NetConnectionProfile

no one is public

User's image

thanks for your help

Windows for business | Windows Client for IT Pros | Networking | Other
0 comments No comments

4 answers

Sort by: Most helpful
  1. Ronald Sabiiti 935 Reputation points Independent Advisor
    2026-10-23T15:45:06.0433333+00:00

    Hello @Salam ELIAS ,

    Yes, you can restrict WinRM access to a specific IP address using Windows Firewall, even though Set-WSManQuickConfig -SkipNetworkProfileCheck configures the listener to accept requests on all local IP addresses by default.

    Open PowerShell as Administrator and run the following command, replacing the example IP with the trusted remote computer's IP address:

    Set-NetFirewallRule -Name "WINRM-HTTP-In-TCP" -RemoteAddress 192.168.1.50
    

    Then verify the rule to confirm the restriction is applied. Also check for other enabled WinRM firewall rules that might allow broader access.

    Note: This restricts which remote computer can connect. If you want WinRM to listen on only one of the laptop's local IP addresses, the listener configuration must also be adjusted.

    Microsoft references:

    Set-WSManQuickConfig

    Set-NetFirewallRule

    Best regards

    Was this answer helpful?

    0 comments No comments

  2. Ronald Sabiiti 935 Reputation points Independent Advisor
    2026-10-23T08:22:47.17+00:00

    Hello @Salam ELIAS ,

    Thank you for sharing the results. Since both reported network profiles are set to Private, let's check whether WinRM is configured correctly before making further changes.

    Please open PowerShell as Administrator and run these commands one at a time:

    1. Check the WinRM listener:

    winrm enumerate winrm/config/listener
    

    2. Check the WinRM firewall rules:

    Get-NetFirewallRule -Name "WINRM-HTTP-In-TCP*" |
    Select-Object DisplayName, Enabled, Profile, Action
    

    3. Test the local WinRM connection:

    Test-WSMan localhost
    

    Please share the outputs and any error messages. This will help us determine whether the issue is with the WinRM listener, firewall configuration, or network profile detection before applying further changes.

    Reference: Microsoft Learn – WinRM installation and configuration

    Best regards

    Was this answer helpful?

    0 comments No comments

  3. Ronald Sabiiti 935 Reputation points Independent Advisor
    2026-10-22T18:46:25.1133333+00:00

    Hello @Salam ELIAS ,

    Based on the output you shared, neither displayed network profile is set to Public. The issue may be caused by another network adapter or a mismatch in the network profile configuration.

    Please try the following steps:

    1. Open PowerShell as an administrator and run Get-NetConnectionProfile to check all network profiles.

    Run Get-NetAdapter -IncludeHidden to identify any additional or virtual network adapters.

    Check the WinRM firewall rules to confirm they are enabled for the appropriate network profile.

    If the issue persists, share the command outputs so we can investigate further before making any network configuration changes.

    For reference, please see Microsoft's documentation:

    WinRM installation and configuration

    Set-WSManQuickConfig PowerShell reference

    I hope this helps to better understand the diagnostic options available and the risks involved.

    If this information was helpful, please click Accept Answer.

    Thank you for choosing Microsoft Q&A.

    Was this answer helpful?


  4. AI answer

    2026-10-22T17:58:44.9966667+00:00

    Run PowerShell as Administrator and use the WSMan cmdlet that is designed for this case:

    Set-WSManQuickConfig -SkipNetworkProfileCheck
    

    Relevant points for this scenario:

    1. Set-WSManQuickConfig configures the local computer for remote management.
    2. It starts the WinRM service if needed, sets startup to automatic, creates a listener on any IP address, and enables the firewall exception for WinRM traffic.
    3. -SkipNetworkProfileCheck is an available parameter for this cmdlet.
    4. This cmdlet must be run from an elevated PowerShell session.

    If HTTPS is required instead of the default HTTP transport, the cmdlet also supports:

    Set-WSManQuickConfig -UseSSL -SkipNetworkProfileCheck
    

    Note: HTTPS requires manual configuration.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.