To remove a Web Application Proxy (WAP) server from a cluster, you must first update the cluster's configuration list via PowerShell and then decommission the specific server by uninstalling its roles. 1. Remove the Server from the Cluster List
- Remove the server from load balancing.
- Uninstall the WAP role.
- Optionally clean up the proxy trust in AD FS.
- Update DNS and monitoring.
If you have a server named server2 that you want to remove, run these commands from an elevated PowerShell prompt on a different active WAP server in the cluster: powershell
Note: In some scenarios, you can also filter out the unwanted server dynamically: powershell
Remove Published Applications: Open the Remote Access Management Console, go to Web Application Proxy, and delete any published applications that were specifically tied to this node.
Clean up DNS: Remove any host (A) records or service (SRV) records in your private and public DNS that point to the decommissioned server. Common Issues