Error Description
This error occurs because the Windows Remote Management (WinRM) service restricts security configurations on network adapters classified as Public. By default, Windows blocks WinRM remote management traffic on Public networks to protect your system from external threats. To enable WinRM, all active network connections must be changed to Private or Domain.
Step-by-Step Solutions
Here are the three easiest ways to fix this issue. You only need to use one of these methods.
Method 1: Change Network Profile to Private via Windows Settings (Easiest)
- Open the Start Menu and click the Settings gear icon (or press
Windows Key + I). - Click on Network & Internet.
- Select your current connection type from the left sidebar:
- Choose Wi-Fi if you are on a wireless network.
- Choose Ethernet if you are using a wired cable.
- Click on the name of your active network connection.
- Under Network profile, change the selection from Public to Private.
- Open your command tool and run your WinRM command again.
Method 2: Change Network Profile via PowerShell (Fastest)
- Right-click the Start Menu button.
- Select Windows PowerShell (Admin) or Terminal (Admin).
- Type the following command to view your active networks and press Enter:
Get-NetConnectionProfile - Look at the output and find the InterfaceIndex number for the network set to Public.
- Type the following command (replace
NUMBERwith your actual InterfaceIndex digit) and press Enter:Set-NetConnectionProfile -InterfaceIndex NUMBER -NetworkCategory Private - Verify the change by running
Get-NetConnectionProfileagain.
Method 3: Skip the Public Network Check (Advanced)
If you must keep your network profile set to Public but still need WinRM enabled, you can force WinRM to accept Public interfaces.
- Right-click the Start Menu button.
- Select Windows PowerShell (Admin) or Terminal (Admin).
- Type the following command and press Enter:
Enable-PSRemoting -SkipNetworkProfileCheck -Force - Alternatively, if you are configuring a specific quick-config command, run:
winrm quickconfig -skipNetworkProfileCheck
Verification
After applying any of the methods above, verify that the service is running correctly by executing this command in an administrator command prompt:
Test-WSMan
If it returns identification details about the WinRM service, the error is successfully resolved.
ERROR_WSMAN_CLIENT_NO_SOURCES | ERROR_WSMAN_INVALID_SUBSCRIBE_OBJECT | ERROR_WSMAN_CERTMAPPING_PASSWORDTOOLONG | ERROR_WSMAN_CERTMAPPING_PASSWORDBLANK | ERROR_WSMAN_CERTMAPPING_PASSWORDUSERTUPLEThere may be some errors. Learn Microsoft