Search for "Allow an app through Windows Firewall" in the Start menu.
Identify the expired certificate, right-click it, and select . i remote desktop connection error code 0x904 install
Press Win + R , type certlm.msc , and hit Enter to open . Navigate to Remote Desktop > Certificates . Right-click the expired certificate and Delete it. Search for "Allow an app through Windows Firewall"
and test the Remote Desktop connection.
If using PowerShell, ensure you are in Admin mode. ensure you are in Admin mode.