1. Open the Exchange management shell
Click on start and then expand Exchange Server 2016 and click on Exchange Management shell.
2. Enter the following command
Type in the following command: Get-ECPVirtualDirectory -Server EX2019A | Set-ECPVirtualDirectory -AdminEnabled $false.