On the remote server, press Win + R , type certlm.msc , and hit Enter to open . Navigate to Remote Desktop > Certificates .
If you are using an Azure VM, the issue is often a corrupt "MachineKeys" folder. Renaming C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys to MachineKeys_old and rebooting typically clears the error. i remote desktop connection error code 0x904 better
Don't worry; we've got you covered! Here are some step-by-step solutions to help you resolve error code 0x904: On the remote server, press Win + R , type certlm
Identify the expired certificate, right-click it, and select . On the remote server