I got the error below when trying to connect to an remote desktop gateway. Event ID 304 The user "DOMAIN\User", on client computer "0.0.0.0", met connection authorization policy and resource authorization policy requirements, but could not connect to resource "remote.example.com". Connection protocol used: "HTTP". The following error occurred: "23005". The solution was to create the internal DNS record pointing "remote.example.com" to the gateway. Looks like this setup was accidentally skipped during setup.