How to Fix Windows Error: "The WinRS client cannot process the request. The server cannot set Code Page."
Error Description
This error occurs when you try to establish a remote management session using Windows Remote Management (WinRM) or Windows Remote Shell (WinRS). It signifies a language or encoding mismatch between the client machine (your computer) and the remote server.
When the WinRS client initiates a connection, it sends its current command-line environment details, including the active Code Page (character encoding scheme), to the remote server. If the remote server does not support, recognize, or permit the specific code page requested by the client, the handshake fails, and the server refuses to process the request. This is highly common when connecting between different Windows versions, different language packs, or when the client uses a non-standard terminal configuration.
Step-by-Step Resolution
Follow these easy steps to resolve the issue by aligning the code pages on both machines.
Step 1: Check Your Client Code Page
First, you need to identify what code page your local system is currently using.
- Press the Windows Key, type
cmd, and press Enter to open the Command Prompt. - Type the following command and press Enter:
chcp - Take note of the active code page number displayed (for example:
437for US English or65001for UTF-8).
Step 2: Change Local Code Page to Standard UTF-8
Switching your terminal to a universally supported code page like UTF-8 or standard US English often resolves the handshake failure.
- In the same Command Prompt window, type the following command to switch to UTF-8:
chcp 65001 - Alternatively, if you want to switch to standard English (United States), use:
chcp 437 - After running the command, attempt your WinRS connection again within that same window.
Step 3: Enable UTF-8 System-Wide (Alternative Fix)
If changing the temporary terminal session code page does not work, you can force Windows to use UTF-8 globally.
- Press Windows Key + R, type
intl.cpl, and press Enter to open Region settings. - Click on the Administrative tab at the top of the window.
- Click the Change system locale... button.
- Check the box next to "Beta: Use Unicode UTF-8 for worldwide language support".
- Click OK, then click Apply.
- Restart your computer for the changes to take effect.
Step 4: Verify WinRM Service Configuration on the Server
If you still cannot connect, ensure the remote server is configured to accept remote management requests properly.
- Open PowerShell or Command Prompt on the target remote server as an Administrator.
- Run the quick configuration tool by typing:
winrm quickconfig - Press
Yto accept any changes or optimization prompts. - Restart the WinRM service to apply the configuration by running:
Restart-Service WinRM
There may be some errors. Learn Microsoft