Choose and execute the following line to rename the corrupted folder: powershell

Sometimes the certificate renewal process leaves the system with a corrupted WMI class, causing 0x904. Open Command Prompt as .

If you are using an Azure Virtual Machine, a corrupt certificate store often prevents RDP from working. In the Azure Portal, go to your VM and select Run Command RunPowerShellScript Run the following command to rename the key folder:

Or via Registry:

This code points squarely at a session initialization timeout or a cryptographic tunnel failure . The local RDP client ( mstsc.exe ) sent an initial request to the target machine, but the communication loop dropped or timed out before it could build a functional user environment.

: Windows Server and Windows 11 use self-signed certificates to secure RDP traffic. If this certificate expires or corrupts, TLS negotiation immediately drops.

If WMI is corrupted, the system cannot manage SSL certificates properly.

This directly addresses ERROR_ARENA_TRASHED .

Try these solutions in order, as they move from the most common causes to more general troubleshooting. 1. Grant Certificate Permissions (Most Likely Solution)