How to Fix Windows Error: "The WinRM service cannot process the request."
Error Description
The Windows Remote Management (WinRM) service allows administrators to remotely execute commands and manage Windows servers and workstations. This specific error typically occurs when the WinRM client attempts to communicate with a remote or local host, but the request fails due to configuration mismatches.
Common underlying causes include:
- The WinRM service is stopped or disabled on the local or target machine.
- Authentication restrictions block the current user or connection protocol (e.g., Kerberos or Negotiate failures).
- The target machine is not listed in the client's TrustedHosts configuration file.
- Network boundaries, firewall rules, or LocalAccountTokenFilterPolicy restrictions prevent remote loopback or admin access.
- The system is using Public instead of Private/Domain network profiles, which automatically blocks WinRM.
Step-by-Step Easy Fixes
Follow these solutions in order until the connection is successfully established.
Step 1: Enable and Restart the WinRM Service
The service must be actively running on both the local machine and the remote machine you are trying to connect to.
- Press Windows Key + X and select Terminal (Admin) or PowerShell (Admin).
- Type the following command to automatically configure WinRM and press Enter:
winrm quickconfig - If prompted to make changes and start the service, type Y and press Enter.
- To ensure the service is running, execute this command:
Start-Service WinRM - Set the service startup type to automatic so it survives system reboots:
Set-Service WinRM -StartupType Automatic
Step 2: Add the Target Host to the TrustedHosts List
If the machines are not part of the same Active Directory Domain, the client computer will reject the connection unless the target is explicitly trusted.
- Open PowerShell (Admin) on your local computer.
- Run the following command to allow connections to a specific remote machine (replace
REMOTE COMPUTER NAME OR IPwith your actual remote target):Set-Item WSMan:\localhost\Client\TrustedHosts -Value "REMOTE COMPUTER NAME OR IP" - Alternative: If you are in a safe, isolated testing environment and want to allow connections to any machine, run:
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*" - Type Y and press Enter to confirm the change.
- Restart the WinRM service to apply settings:
Restart-Service WinRM
Step 3: Change the Network Profile to Private
WinRM blocks traffic by default if your active network connection is classified as "Public" for safety reasons.
- Right-click the network icon in your Windows taskbar and select Network and Internet settings.
- Click on Wi-Fi or Ethernet depending on your current connection type.
- Click on your active network properties.
- Change the network profile type from Public (Recommended) to Private.
Step 4: Configure the Local Account Token Filter Policy
If you are logging in using a local administrator account instead of a domain administrator account, Windows User Account Control (UAC) strips administrative rights upon remote login. You must disable this restriction.
- Press Windows Key + R, type
regedit, and press Enter to open the Registry Editor. - Navigate to the following path in the left sidebar:
HKEY LOCAL MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System - Right-click on an empty space in the right panel, select New, and then click DWORD (32-bit) Value.
- Name the new value exactly:
LocalAccountTokenFilterPolicy - Double-click the newly created
LocalAccountTokenFilterPolicyitem, change its Value data to1, and click OK. - Restart your computer for the registry changes to take effect.
Step 5: Verify the Connection Status
Once the steps above are completed, verify that the WinRM system is fully operational.
- Open PowerShell (Admin).
- Test the configuration by running a local loopback check:
Test-WSMan - If successful, you will see details about the WS-Management stack version. You can now connect to your remote machine using your standard remoting commands.
There may be some errors. Learn Microsoft