How to remove “local autodiscover” or SCP when migrating to O365
Zitat von mpca am 22. Mai 2021, 12:40 Uhrhttps://www.cyberdrain.com/how-to-remove-local-autodiscover-when-migrating-to-o365/
There are three ways of resolving this:
- Remove the SCP using PowerShell
- Remove the SCP using ADSI Edit
- Disable IIS on the decomissioned server
1.)
Using PowerShell on the old server is probably the easiest method, You can run the following cmdlet in the Exchange Powershell Module.
Remember to only run this if all local exchange servers have been decommissioned.Get-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri $nullIf you still have one CAS server in the network, you can run the following command instead:
$ServerName = "OLDSERVER" Set-ClientAccessServer -identity $ServerName -AutoDiscoverServiceInternalUri $null2.) Using ADSIEDIT
To delete the string from the active directory you can use ADSI edit to open the following path, please change the red marked parts to your current environment:
CN=ServerName,CN=Autodiscover,CN=Protocols,CN=ServerName,CN=Servers,CN=Exchange Administrative Group (FYENEBBA),CN=Administrative Groups,CN=OrganizationName,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=DomainName,DC=Suffix3.)
The last method is a “Lazy mans” solution and advised if you do not want to make any permanent changes. You can decide to disable the IIS services on the CAS server, preventing logons, Outlook will automatically use Autodiscover when it finds it cannot log into the local server.
https://www.cyberdrain.com/how-to-remove-local-autodiscover-when-migrating-to-o365/
There are three ways of resolving this:
- Remove the SCP using PowerShell
- Remove the SCP using ADSI Edit
- Disable IIS on the decomissioned server
1.)
Using PowerShell on the old server is probably the easiest method, You can run the following cmdlet in the Exchange Powershell Module.
Remember to only run this if all local exchange servers have been decommissioned.
Get-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri $null
If you still have one CAS server in the network, you can run the following command instead:
$ServerName = "OLDSERVER" Set-ClientAccessServer -identity $ServerName -AutoDiscoverServiceInternalUri $null
2.) Using ADSIEDIT
To delete the string from the active directory you can use ADSI edit to open the following path, please change the red marked parts to your current environment:
CN=ServerName,CN=Autodiscover,CN=Protocols,CN=ServerName,CN=Servers,CN=Exchange Administrative Group (FYENEBBA),CN=Administrative Groups,CN=OrganizationName,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=DomainName,DC=Suffix
3.)
The last method is a “Lazy mans” solution and advised if you do not want to make any permanent changes. You can decide to disable the IIS services on the CAS server, preventing logons, Outlook will automatically use Autodiscover when it finds it cannot log into the local server.