Fixing Windows Error: "WinRM cannot make the configuration change."
Error Description
The error "WinRM cannot make the configuration change" occurs when you attempt to configure Windows Remote Management (WinRM) using commands like winrm quickconfig or Enable-PSRemoting.
The core reason for this issue is a security constraint within Windows: WinRM requires that your network profile type be set to either 'Domain' or 'Private'. If any active network card or connection profile on your machine is classified as 'Public', the security engine blocks local configuration adjustments to mitigate risks. Other contributing factors include a locked-out WinRM service state or overriding local Group Policies.
Step-by-Step Fixes
Method 1: Change the Network Location Profile to Private (Most Common Fix)
If your computer treats your network as a public hotspot, WinRM configuration parameters are protected from changes. Changing this to Private clears the restriction.
- Right-click the Start Menu and select Windows PowerShell (Admin) or Terminal (Admin).
- Check your current network configurations by running the following command:
Get-NetConnectionProfile - Look at the
NetworkCategoryoutput. If it lists Public, you must switch it. - Execute this command to switch all public network adapters to Private status:
Get-NetConnectionProfile -NetworkCategory Public | Set-NetConnectionProfile -NetworkCategory Private - Try executing your configuration task again:
winrm quickconfig
Method 2: Force the Configuration bypassing the Public Network Check
If you are explicitly working on a machine that needs to keep its public profile but requires local remoting enabled, you can run a targeted command to ignore the network profile profile boundary.
- Open Windows PowerShell (Admin).
- Run the remoting activation setup with the
-SkipNetworkProfileCheckflag:Enable-PSRemoting -SkipNetworkProfileCheck -Force - This bypasses the strict public interface limitation rule instantly.
Method 3: Reset and Restart the WinRM Service Components
Sometimes corruption in the underlying WinRM listener paths prevents changes from sticking. Clearing current listeners resolves this loop.
- Open Command Prompt (Admin) or PowerShell (Admin).
- Force stop the WinRM infrastructure:
net stop winrm - Set the service deployment architecture to initialize automatically:
sc config winrm start= auto - Start the WinRM infrastructure engine back up:
net start winrm - Clear out problematic settings by invoking a built-in baseline reset:
winrm invoke Restore winrm/Config - Re-run the automated wizard configuration:
winrm quickconfig
Method 4: Audit Group Policy Interferences
If the settings are governed strictly at an enterprise domain tier, local administrative scripts cannot override them.
- Press
Windows Key + R, typegpedit.msc, and press Enter. - Navigate to this pathway:
Computer Configuration>Administrative Templates>Windows Components>Windows Remote Management (WinRM)>WinRM Service - Look for policies like "Allow remote server management through WinRM".
- If they are explicitly set to Disabled, switch them to Enabled or Not Configured to grant your system permission to execute config alterations locally.
There may be some errors. Learn Microsoft