Remote Desktop Gateway
Find Remote Desktop Gateway licencing servers
Get-ADObject -LDAPFilter “(&(CN=TermServLicensing)(objectClass=serviceConnectionPoint))” | fl
Set IIS redirect to prevent default IIS page
- Open IIS Manager on the RD Gateway / Connection Broker server.
- Go to: Sites > Default Web Site Select Default Web Site itself, not RDWeb, RPC, or any child application.
- Open HTTP Redirect.
- Enable: Redirect requests to this destination Use: /RDWeb or, if you want the full URL: https://domain.com/RDWeb
- Important: tick only: Only redirect requests to content in this directory This is the key setting. It prevents IIS from redirecting /rpc, /RDWeb, /RDWeb/Pages, etc.
- Set status code: You can use Permanent (301) later, but use 302 first while testing.
- Apply the change.