Managing a high-availability environment often requires scaling back or replacing aging infrastructure. When you need to , simply turning off the machine isn't enough; the configuration will still exist in the AD FS database, leading to management errors and synchronization issues.
Open Server Manager and click > Remove Roles and Features . Select the target server and uncheck Remote Access . remove web application proxy server from cluster
Note: Using the aliases swpc (Set) and gwpc (Get) is also common in technical documentation. Verify the server is gone by running: powershell (Get-WebApplicationProxyConfiguration).ConnectedServersName Use code with caution. 2. Decommissioning the Server Role Select the target server and uncheck Remote Access
Best practice for security if the server is permanently retired. WAP – How to remove a WAP Server from WAP clusters remove web application proxy server from cluster
Set-WebApplicationProxyConfiguration –ConnectedServersName ((Get-WebApplicationProxyConfiguration).ConnectedServersName -ne '://domain.com') Use code with caution.