Forum Discussion

mohemedd93's avatar
mohemedd93
Copper Contributor
Dec 06, 2024
Solved

uninstall error exchange server CAS role:

hi teams ,

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

 

 

the iis admin service not started , 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


any help

  • IIS and Exchange Services Diagnostic

    # Stop all related services
    net stop "World Wide Web Publishing Service"
    net stop "IIS Admin Service"
    net stop MSExchangeADTopology
    net stop MSExchangeTransportLogSearch
    net stop MSExchangeFrontEndTransportService

    # Check service status
    sc query "IIS Admin Service"

    Comprehensive Cleanup

    # Remove Exchange-specific IIS configurations
    %windir%\system32\inetsrv\appcmd delete module WebDAVModule

    # Clean up Exchange directories
    Remove-Item "C:\Program Files\Microsoft\Exchange Server" -Recurse -Force

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

    1. Active Directory Cleanup
    • Use ADSI Edit to carefully remove:
      • Exchange Administrative Groups
      • Exchange Server objects
      • Specific protocol configurations
    1. Prerequisites and System Repair 

      # Reinstall Windows Features
      Install-WindowsFeature Web-Server
      Install-WindowsFeature Web-Asp-Net45
      Install-WindowsFeature Web-Windows-Auth

      # System File Check
      sfc /scannow

      Recommended Troubleshooting Sequence:

      1. Stop all Exchange and IIS services
      2. Clean up AD objects meticulously
      3. Remove IIS and Exchange configurations
      4. Repair Windows components
      5. Attempt clean uninstallation
      6. Reboot server if needed

      Additional Recommendations:

      • Ensure no active mailboxes
      • Verify no service dependencies
      • Use Exchange Uninstall Wizard
      • Backup critical data beforehand
      • Consider Microsoft Support if issues persist

      Key Checks:

      • Verify IIS Admin Service can start
      • Check for any lingering Exchange processes
      • Confirm proper permissions
  • kyazaferr's avatar
    kyazaferr
    Steel Contributor

    IIS and Exchange Services Diagnostic

    # Stop all related services
    net stop "World Wide Web Publishing Service"
    net stop "IIS Admin Service"
    net stop MSExchangeADTopology
    net stop MSExchangeTransportLogSearch
    net stop MSExchangeFrontEndTransportService

    # Check service status
    sc query "IIS Admin Service"

    Comprehensive Cleanup

    # Remove Exchange-specific IIS configurations
    %windir%\system32\inetsrv\appcmd delete module WebDAVModule

    # Clean up Exchange directories
    Remove-Item "C:\Program Files\Microsoft\Exchange Server" -Recurse -Force

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

    1. Active Directory Cleanup
    • Use ADSI Edit to carefully remove:
      • Exchange Administrative Groups
      • Exchange Server objects
      • Specific protocol configurations
    1. Prerequisites and System Repair 

      # Reinstall Windows Features
      Install-WindowsFeature Web-Server
      Install-WindowsFeature Web-Asp-Net45
      Install-WindowsFeature Web-Windows-Auth

      # System File Check
      sfc /scannow

      Recommended Troubleshooting Sequence:

      1. Stop all Exchange and IIS services
      2. Clean up AD objects meticulously
      3. Remove IIS and Exchange configurations
      4. Repair Windows components
      5. Attempt clean uninstallation
      6. Reboot server if needed

      Additional Recommendations:

      • Ensure no active mailboxes
      • Verify no service dependencies
      • Use Exchange Uninstall Wizard
      • Backup critical data beforehand
      • Consider Microsoft Support if issues persist

      Key Checks:

      • Verify IIS Admin Service can start
      • Check for any lingering Exchange processes
      • Confirm proper permissions

Resources