When trying to uninstall Edge role you receive this message
“cannot find information about the local server in active directory. this may be related to a change in the server name”.
Even after setting name back to the original still cannot uninstall
If possible the best solution is to use remove-edgesubscription from the hub server, and format and re-install the edge server role.
Or if this is not possible
Perform a manual uninstall of Exchange Edge role
WARNING: Always be sure to have a backup of a Domain controller system state and registry of the server before making any changes
- 1. Install and use “Windows Installer Cleanup Utility” to uninstall Exchange all 2007 entries on the edge server
- Use ADSIEdit.msc (may need to install from support tools) to remove the following entries
- Open ADSIedit.msc on the domain controlle
- Right click ADSI Edit and click connect to
- Select Configuration under well known naming contex
- Select Default (domain or computer that you logged in to
- Click o
- Browse to CN=Configuration, CN=Services, CN=Microsoft Exchange, CN=First Organization, CN=Administrative Groups, CN=Exchange Administrative Groups (FYDIBOHF23SPDLT), CN=Servers
- Delete CN=<edgeserver
- Open ADSIedit.msc on the domain controlle
- Open ADSIedit.msc on the Edge serve
- Right click ADSI Edit and click connect to
- Click Advanced and change port to: 50389
- Select Configuration under well known naming contex
- Select Default (domain or computer that you logged in to
- Click ok
- Browse to CN=Configuration, CN=Services
- Delete CN=”Microsoft Exchange” key
- Right click ADSI Edit and click connect to
- Use ADSIEdit.msc (may need to install from support tools) to remove the following entries
- Delete DNS entry for edge (not sure that was needed either)
- On the edge Server run Regedit
- Delete all the MSExchange keys under HKLM\System\currentcontrolset
- Delete HKLM\software\microsoft\Exchange
- Delete HKLM\SYSTEM\Currentcontrolset\services\ADAM_MSExchange
- Delete HKLM\SYSTEM\Currentcontrolset\services\ EdgeCredentialsvc
- Delete HKLM\software\microsoft\software\windows\currentVersion\uninstall\ADAM_MSExchange$0
- Delete HKLM\software\microsoft\software\windows\currentVersion\uninstall\Microsoft Exchang
- Delete c:\program files\Microsoft
- Renamed c:\ExchangeSetupLogs to c:\old_ExchangeSetupLogs
- reinstall Edge