Forum Discussion

mohemedd93's avatar
mohemedd93
Copper Contributor
Dec 06, 2024

Error unisntall exchange server

Hi teams, 

i have an error when i rty to uninstall exchange server : in role CAS at 70%

Mailbox role: Client Access service FAILED:

the iis admin service not start , and i delete all folder (owa, mapi, ...) in http folder Configuration > CN=Configuration> CN=Services > CN=Microsoft Exchange > CN=EXOIP > CN=Administrative Groups > CN=Exchange Administrative Group (FYDIBOHF23SPDLT) > CN=Servers > CN=srv_name > CN=Protocols > CN=HTTP.

and i delete also the folder http from adsi edit,

i also repair all prerequis (iis rewrite, vs2012...)

any help

4 Replies

    1. Prepare for Clean Uninstall
    • Backup all critical data
    • Ensure no active mailboxes
    • Verify no dependencies
    • Use Exchange Uninstall Wizard with full cleanup option

    Recommended Sequence:

    1. Stop all Exchange services
    2. Remove AD objects carefully
    3. Uninstall Exchange through Add/Remove Programs
    4. Clean up remaining files and registry entries
    5. Reboot server
    • mohemedd93's avatar
      mohemedd93
      Copper Contributor

      thank you, 

      now i have another problem when i try to install exchange in the same server after uninstall :

      i remove the file in c:\programfile\....\exchangeserver : 

       

      also i find thes services exchange :

      any help 

      • kyazaferr's avatar
        kyazaferr
        MCT

        Some steps you can try to resolve this issue:

        1. Check the IIS Admin Service: Ensure that the IIS Admin Service is running properly. You can try stopping and restarting the service using the PowerShell commands provided in the image.
        2. Clean up Exchange-related configurations: Remove any Exchange-specific IIS configurations, such as the WebDAVModule, using the provided PowerShell command.
        3. Verify Active Directory cleanup: Carefully remove any remaining Exchange-related objects from Active Directory using a tool like ADSI Edit.
        4. Repair Windows components: Reinstall the necessary Windows features, such as Web-Server, Web-Asp-Net45, and Web-Windows-Auth, to ensure the system is in a healthy state.
        5. Attempt a clean Exchange uninstallation: Before reinstalling Exchange, try to perform a clean uninstallation using the Exchange Uninstall Wizard, ensuring that you select the full cleanup option.
        6. Reboot the server: After completing the cleanup and uninstallation steps, reboot the server to ensure a fresh start.
  • IIS Admin Service Troubleshooting

    # Stop and Restart IIS Services
    net stop "World Wide Web Publishing Service"
    net stop "IIS Admin Service"
    net start "IIS Admin Service"
    net start "World Wide Web Publishing Service"

    # Check Service Status
    sc query "IIS Admin Service"

    Exchange Cleanup Steps

    # Disable Exchange Services
    net stop MSExchangeADTopology
    net stop MSExchangeFrontEndTransportService

    # Remove Exchange Registry Entries
    reg delete "HKLM\SOFTWARE\Microsoft\Exchange" /f

    # Clean Up Remaining Exchange Directories
    Remove-Item "C:\Program Files\Microsoft\Exchange Server" -Recurse -Force

    Active Directory Cleanup

    # Remove Exchange Objects from Active Directory
    # Use ADSI Edit or PowerShell Active Directory Module
    # Carefully remove:
    # - Exchange Administrative Groups
    # - Exchange Servers
    # - Exchange Organization

    Prerequisite Repair 

    # Reinstall Windows Features
    Install-WindowsFeature Web-Asp-Net45
    Install-WindowsFeature Web-Net-Ext45
    Install-WindowsFeature Web-Windows-Auth

    # Reset IIS
    %windir%\system32\inetsrv\appcmd uninstall module "WebDAVModule"

Resources