Exchange 2010 SP3 - Cannot uninstall server

Steel Contributor

Hi All

 

Hope everyone is well.

Please can someone assist me.

I am trying to uninstall an Exchange 2010 SP3 RU 23 server from my org but I keep getting the error below. Please can someone assist me

 

[12/12/2018 09:17:32.0926] [1] This specified ScanType (PrecheckUninstall) is not defined in the configuration file.

 

Full log:

 

 

 

[12/12/2018 09:17:17.0817] [0] **********************************************
[12/12/2018 09:17:17.0817] [0] Starting Microsoft Exchange Server 2010 Setup
[12/12/2018 09:17:17.0817] [0] **********************************************
[12/12/2018 09:17:17.0817] [0] Local Time Zone: (UTC+03:00) Nairobi.
[12/12/2018 09:17:17.0817] [0] Operating System version: Microsoft Windows NT 6.1.7601 Service Pack 1.
[12/12/2018 09:17:17.0817] [0] Setup version: 14.3.417.1.
[12/12/2018 09:17:17.0817] [0] Logged on user: mycompanyEA2\admin-ns.
[12/12/2018 09:17:18.0489] [0] Command Line Parameter Name='mode', Value='Uninstall'.
[12/12/2018 09:17:18.0489] [0] ExSetupUI was started with the following command: '-mode:uninstall'.
[12/12/2018 09:17:18.0911] [0] Setup is choosing the domain controller to use
[12/12/2018 09:17:18.0942] [0] The MSExchangeADTopology has a persisted domain controller: TKEN-NGN-DC01.mycompanyea2.mycompany.com
[12/12/2018 09:17:19.0489] [0] PrepareAD has been run, and has replicated to this domain controller; so setup will use TKEN-NGN-DC01.mycompanyea2.mycompany.com
[12/12/2018 09:17:19.0489] [0] Setup is choosing a global catalog...
[12/12/2018 09:17:19.0645] [0] Setup has chosen the global catalog server TKEN-NGN-DC01.mycompanyea2.mycompany.com.
[12/12/2018 09:17:19.0661] [0] Setup will use the domain controller 'TKEN-NGN-DC01.mycompanyea2.mycompany.com'.
[12/12/2018 09:17:19.0661] [0] Setup will use the global catalog 'TKEN-NGN-DC01.mycompanyea2.mycompany.com'.
[12/12/2018 09:17:19.0677] [0] Exchange configuration container for the organization is 'CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mycompanyea2,DC=mycompany,DC=com'.
[12/12/2018 09:17:19.0677] [0] Exchange organization container for the organization is 'CN=TEAL,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mycompanyea2,DC=mycompany,DC=com'.
[12/12/2018 09:17:19.0723] [0] Setup will search for an Exchange Server object for the local machine with name 'TKEN-NGN-EXCH01'.
[12/12/2018 09:17:19.0755] [0] Exchange Server object found : 'CN=TKEN-NGN-EXCH01,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=TEAL,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mycompanyea2,DC=mycompany,DC=com'.
[12/12/2018 09:17:19.0817] [0] The following roles have been unpacked: BridgeheadRole ClientAccessRole MailboxRole AdminToolsRole 
[12/12/2018 09:17:19.0817] [0] The following datacenter roles are unpacked: 
[12/12/2018 09:17:19.0817] [0] The following roles are installed: BridgeheadRole ClientAccessRole MailboxRole AdminToolsRole 
[12/12/2018 09:17:19.0817] [0] The local server has some Exchange files installed.
[12/12/2018 09:17:19.0989] [0] Setup will use the path 'C:\Program Files\Microsoft\Exchange Server\V14\bin' for installing Exchange.
[12/12/2018 09:17:19.0989] [0] Setup will discover the installed roles from server object 'CN=TKEN-NGN-EXCH01,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=TEAL,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mycompanyea2,DC=mycompany,DC=com'.
[12/12/2018 09:17:19.0989] [0] 'BridgeheadRole' is installed on the server object.
[12/12/2018 09:17:19.0989] [0] 'ClientAccessRole' is installed on the server object.
[12/12/2018 09:17:19.0989] [0] 'MailboxRole' is installed on the server object.
[12/12/2018 09:17:20.0005] [0] The installation mode is set to: 'Uninstall'.
[12/12/2018 09:17:20.0036] [0] An Exchange organization with name 'TEAL' was found in this forest.
[12/12/2018 09:17:20.0036] [0] Active Directory Initialization status : 'True'.
[12/12/2018 09:17:20.0036] [0] Schema Update Required Status : 'False'.
[12/12/2018 09:17:20.0036] [0] Organization Configuration Update Required Status : 'False'.
[12/12/2018 09:17:20.0036] [0] Domain Configuration Update Required Status : 'False'.
[12/12/2018 09:17:20.0052] [0] The locally installed version is 14.3.123.4.
[12/12/2018 09:17:20.0052] [0] Exchange Installation Directory : 'C:\Program Files\Microsoft\Exchange Server\V14'.
[12/12/2018 09:17:20.0098] [0] Applying default role selection state
[12/12/2018 09:17:20.0098] [0] Applying default role selection state
[12/12/2018 09:17:20.0098] [0] Setup will run from path 'C:\Program Files\Microsoft\Exchange Server\V14\'.
[12/12/2018 09:17:20.0130] [0] UninstallModeDataHandler has 0 DataHandlers
[12/12/2018 09:17:20.0130] [0] RootDataHandler has 1 DataHandlers
[12/12/2018 09:17:26.0645] [0] Setup will run from path 'C:\Program Files\Microsoft\Exchange Server\V14\'.
[12/12/2018 09:17:26.0677] [0] UninstallModeDataHandler has 6 DataHandlers
[12/12/2018 09:17:28.0067] [0] Validating options for the 0 requested roles
[12/12/2018 09:17:28.0083] [0] UninstallModeDataHandler has 6 handlers and 1 work units
[12/12/2018 09:17:29.0192] [0] **************
[12/12/2018 09:17:29.0192] [0] Setup will run the task 'Start-PreConfiguration'
[12/12/2018 09:17:29.0192] [1] Setup launched task 'Start-PreConfiguration -Mode 'Uninstall' -Roles 'BridgeheadRole''  
[12/12/2018 09:17:29.0614] [1] Active Directory session settings for 'Start-PreConfiguration' are: View Entire Forest: 'True', Configuration Domain Controller: 'TKEN-NGN-DC01.mycompanyea2.mycompany.com', Preferred Global Catalog: 'TKEN-NGN-DC01.mycompanyea2.mycompany.com', Preferred Domain Controllers: '{ TKEN-NGN-DC01.mycompanyea2.mycompany.com }'
[12/12/2018 09:17:29.0676] [1] Beginning processing Start-PreConfiguration -Mode:'Uninstall' -Roles:'BridgeheadRole'
[12/12/2018 09:17:29.0723] [1] Loaded component 'Prereq Configuration' with 3 task information blocks from 'res://AllServerRolesPreConfig.xml'
[12/12/2018 09:17:29.0723] [1] Loaded component 'Prereq Configuration' with 1 task information blocks from 'res://AllADRolesPreConfig.xml'
[12/12/2018 09:17:29.0723] [1] Loaded component 'Prereq Configuration' with 1 task information blocks from 'res://BridgeheadPreConfig.xml'
[12/12/2018 09:17:29.0723] [1] Writing informational script to 'C:\ExchangeSetupLogs\Start-PreConfiguration-20181212-12172907231496785576.ps1'
[12/12/2018 09:17:29.0723] [1] Executing: $RoleADToolsNeeded = $False
[12/12/2018 09:17:29.0739] [1] Executing: $RoleBinPath = 'C:\Program Files\Microsoft\Exchange Server\V14\Bin'
[12/12/2018 09:17:29.0739] [1] Executing: $RoleDatacenterPath = 'C:\Program Files\Microsoft\Exchange Server\V14\Datacenter'
[12/12/2018 09:17:29.0739] [1] Executing: $RoleInstallationMode = 'Uninstall'
[12/12/2018 09:17:29.0739] [1] Executing: $RoleInstallPath = 'C:\Program Files\Microsoft\Exchange Server\V14\'
[12/12/2018 09:17:29.0739] [1] Executing: $RoleInstallWindowsComponents = $False
[12/12/2018 09:17:29.0739] [1] Executing: $RoleInvocationID = '20181212-12172907231496785576'
[12/12/2018 09:17:29.0739] [1] Executing: $RoleIsDatacenter = $False
[12/12/2018 09:17:29.0739] [1] Executing: $RoleIsPartnerHosted = $False
[12/12/2018 09:17:29.0739] [1] Executing: $RoleIsServerSbs = $False
[12/12/2018 09:17:29.0739] [1] Executing: $RoleIsWindows8OrHigher = $False
[12/12/2018 09:17:29.0739] [1] Executing: $RoleLoggingPath = 'C:\Program Files\Microsoft\Exchange Server\V14\Logging'
[12/12/2018 09:17:29.0739] [1] Executing: $RoleProductPlatform = 'amd64'
[12/12/2018 09:17:29.0755] [1] Executing: $RoleRoles = 'BridgeheadRole'
[12/12/2018 09:17:29.0755] [1] Executing: $RoleSetupLoggingPath = 'C:\ExchangeSetupLogs'
[12/12/2018 09:17:29.0755] [1] Executing: $RoleTargetVersion = '14.03.0417.001'
[12/12/2018 09:17:29.0755] [1] Reversing task list to uninstall for Exchange 2010 SP1.
[12/12/2018 09:17:29.0755] [1] 4 tasks were found to execute.
[12/12/2018 09:17:29.0755] [1] Processing component 'Prereq Configuration' (Configuring the server.).
[12/12/2018 09:17:29.0755] [1] Processing component 'Prereq Configuration' (Configuring the server.).
[12/12/2018 09:17:29.0755] [1] Executing: 
          if (Get-Service W3Svc* | ?{$_.Name -eq 'W3Svc'})
          {
            Set-Service W3Svc -StartupType Automatic
            Start-SetupService -ServiceName W3Svc
          }
        
[12/12/2018 09:17:29.0786] [2] Active Directory session settings for 'start-SetupService' are: View Entire Forest: 'True', Configuration Domain Controller: 'TKEN-NGN-DC01.mycompanyea2.mycompany.com', Preferred Global Catalog: 'TKEN-NGN-DC01.mycompanyea2.mycompany.com', Preferred Domain Controllers: '{ TKEN-NGN-DC01.mycompanyea2.mycompany.com }'
[12/12/2018 09:17:29.0786] [2] Beginning processing Start-SetupService -ServiceName:'W3Svc'
[12/12/2018 09:17:29.0786] [2] Ending processing Start-SetupService
[12/12/2018 09:17:29.0786] [1] Processing component 'Prereq Configuration' (Configuring the server.).
[12/12/2018 09:17:29.0786] [1] Executing: 
          $windowsVersion = [Environment]::OSVersion.Version
          if ($windowsVersion.Major -eq 6 -and $windowsVersion.Minor -eq 0)
          {
            if (Get-Service MpsSvc* | ?{$_.Name -eq 'MpsSvc'})
            {
              Set-Service MpsSvc -StartupType Automatic
              Start-SetupService -ServiceName MpsSvc
            }
          }
        
[12/12/2018 09:17:29.0817] [1] Executing: 
          if (Get-Service WinMgmt* | ?{$_.Name -eq 'WinMgmt'})
          {
            Set-Service WinMgmt -StartupType Automatic
            Start-SetupService -ServiceName WinMgmt
          }
        
[12/12/2018 09:17:29.0817] [2] Active Directory session settings for 'start-SetupService' are: View Entire Forest: 'True', Configuration Domain Controller: 'TKEN-NGN-DC01.mycompanyea2.mycompany.com', Preferred Global Catalog: 'TKEN-NGN-DC01.mycompanyea2.mycompany.com', Preferred Domain Controllers: '{ TKEN-NGN-DC01.mycompanyea2.mycompany.com }'
[12/12/2018 09:17:29.0817] [2] Beginning processing Start-SetupService -ServiceName:'WinMgmt'
[12/12/2018 09:17:29.0817] [2] Ending processing Start-SetupService
[12/12/2018 09:17:29.0833] [1] Executing: 
          if (Get-Service RemoteRegistry* | ?{$_.Name -eq 'RemoteRegistry'})
          {
            Set-Service RemoteRegistry -StartupType Automatic
            Start-SetupService -ServiceName RemoteRegistry
          }
        
[12/12/2018 09:17:29.0833] [2] Active Directory session settings for 'start-SetupService' are: View Entire Forest: 'True', Configuration Domain Controller: 'TKEN-NGN-DC01.mycompanyea2.mycompany.com', Preferred Global Catalog: 'TKEN-NGN-DC01.mycompanyea2.mycompany.com', Preferred Domain Controllers: '{ TKEN-NGN-DC01.mycompanyea2.mycompany.com }'
[12/12/2018 09:17:29.0833] [2] Beginning processing Start-SetupService -ServiceName:'RemoteRegistry'
[12/12/2018 09:17:29.0833] [2] Ending processing Start-SetupService
[12/12/2018 09:17:29.0848] [1] Finished executing component tasks.
[12/12/2018 09:17:29.0880] [1] Ending processing Start-PreConfiguration
[12/12/2018 09:17:29.0926] [0] **************
[12/12/2018 09:17:29.0926] [0] Setup will run the task 'test-setuphealth'
[12/12/2018 09:17:29.0926] [1] Setup launched task 'test-setuphealth -DomainController 'TKEN-NGN-DC01.mycompanyea2.mycompany.com' -DownloadConfigurationUpdates $true -ExchangeVersion '14.3.417.1' -Roles 'Bridgehead' -ScanType 'PrecheckUninstall' -SetupRoles 'Bridgehead' -TargetDir 'C:\Program Files\Microsoft\Exchange Server\V14''  
[12/12/2018 09:17:29.0926] [1] Active Directory session settings for 'test-SetupHealth' are: View Entire Forest: 'True', Configuration Domain Controller: 'TKEN-NGN-DC01.mycompanyea2.mycompany.com', Preferred Global Catalog: 'TKEN-NGN-DC01.mycompanyea2.mycompany.com', Preferred Domain Controllers: '{ TKEN-NGN-DC01.mycompanyea2.mycompany.com }'
[12/12/2018 09:17:29.0926] [1] Beginning processing test-setuphealth -DomainController:'TKEN-NGN-DC01.mycompanyea2.mycompany.com' -DownloadConfigurationUpdates:'True' -ExchangeVersion:'14.3.417.1' -Roles:'Bridgehead' -ScanType:'PrecheckUninstall' -SetupRoles:'Bridgehead' -TargetDir:'C:\Program Files\Microsoft\Exchange Server\V14'
[12/12/2018 09:17:32.0926] [1] Unexpected Error
[12/12/2018 09:17:32.0926] [1] This specified ScanType (PrecheckUninstall) is not defined in the configuration file.
Parameter name: ScanType
[12/12/2018 09:17:32.0958] [1] Ending processing test-setuphealth

7 Replies

Can anyone possibly assist?

@Tony Redmond

 

@Navishkar Sadheo

Can you tell me how you are uninstalling - through command line or GUI.

I cannot see any error in the logs other than unexpected errors.

Is this server has a multi role installed exchange server?

 

Can you also check the below points?

 

1. have you deleted all mailbox database from that server

2. Have you deleted Public folder database.

3. Remove the offline address book replication

4. Check the send/receive connectors still configured on this server.

 

Please refer the below blogs

https://exchange-server-guide.blogspot.com/2016/10/uninstall-exchange-server-2010.html

https://blogs.technet.microsoft.com/mspfe/2015/08/26/decommissioning-legacy-exchange-servers/

 

Regards,

James Daniel

 

 

Hi James. Thanks so much for your reply.

 

I tried the command line and the GUI.

I also download the latest Exchange 2010 install file and tried the uninstall from there using the command line and the GUI.

 

I have generated a new setup log and attached it here.

 

There are no mailboxe databases on this server.

I can't see any PF databases on this server.

Can you elaborate more on the OAB replication?

There are only the default receive connectors on this server.

I can't seem to upload the log file. Here is a copy:

 

[01/23/2019 10:48:34.0190] [0] **********************************************
[01/23/2019 10:48:34.0190] [0] Starting Microsoft Exchange Server 2010 Setup
[01/23/2019 10:48:34.0190] [0] **********************************************
[01/23/2019 10:48:34.0222] [0] Local Time Zone: (UTC+03:00) Nairobi.
[01/23/2019 10:48:34.0222] [0] Operating System version: Microsoft Windows NT 6.1.7601 Service Pack 1.
[01/23/2019 10:48:34.0222] [0] Setup version: 14.3.417.1.
[01/23/2019 10:48:34.0222] [0] Logged on user: TOYOTAEA2\admin-ns.
[01/23/2019 10:48:35.0112] [0] Command Line Parameter Name='nologo', Value=''.
[01/23/2019 10:48:35.0112] [0] Command Line Parameter Name='mode', Value='Uninstall'.
[01/23/2019 10:48:35.0112] [0] Command Line Parameter Name='roles', Value='Microsoft.Exchange.Management.Deployment.RoleCollection'.
[01/23/2019 10:48:35.0112] [0] Command Line Parameter Name='fromsetup', Value=''.
[01/23/2019 10:48:35.0144] [0] ExSetup was started with the following command: '/NoLogo /mode:uninstall /roles:HT /FromSetup'.
[01/23/2019 10:48:35.0456] [0] Setup is choosing the domain controller to use
[01/23/2019 10:48:35.0519] [0] The MSExchangeADTopology has a persisted domain controller: TKEN-NGN-DC01.toyotaea2.toyota.com
[01/23/2019 10:48:36.0034] [0] PrepareAD has been run, and has replicated to this domain controller; so setup will use TKEN-NGN-DC01.toyotaea2.toyota.com
[01/23/2019 10:48:36.0034] [0] Setup is choosing a global catalog...
[01/23/2019 10:48:36.0206] [0] Setup has chosen the global catalog server TKEN-NGN-DC01.toyotaea2.toyota.com.
[01/23/2019 10:48:36.0222] [0] Setup will use the domain controller 'TKEN-NGN-DC01.toyotaea2.toyota.com'.
[01/23/2019 10:48:36.0222] [0] Setup will use the global catalog 'TKEN-NGN-DC01.toyotaea2.toyota.com'.
[01/23/2019 10:48:36.0222] [0] Exchange configuration container for the organization is 'CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=toyotaea2,DC=toyota,DC=com'.
[01/23/2019 10:48:36.0222] [0] Exchange organization container for the organization is 'CN=TEAL,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=toyotaea2,DC=toyota,DC=com'.
[01/23/2019 10:48:36.0284] [0] Setup will search for an Exchange Server object for the local machine with name 'TKEN-NGN-EXCH01'.
[01/23/2019 10:48:36.0300] [0] Exchange Server object found : 'CN=TKEN-NGN-EXCH01,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=TEAL,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=toyotaea2,DC=toyota,DC=com'.
[01/23/2019 10:48:36.0347] [0] The following roles have been unpacked: BridgeheadRole ClientAccessRole MailboxRole AdminToolsRole
[01/23/2019 10:48:36.0347] [0] The following datacenter roles are unpacked:
[01/23/2019 10:48:36.0347] [0] The following roles are installed: BridgeheadRole ClientAccessRole MailboxRole AdminToolsRole
[01/23/2019 10:48:36.0347] [0] The local server has some Exchange files installed.
[01/23/2019 10:48:36.0534] [0] Setup will use the path 'C:\Program Files\Microsoft\Exchange Server\V14\bin' for installing Exchange.
[01/23/2019 10:48:36.0550] [0] Setup will discover the installed roles from server object 'CN=TKEN-NGN-EXCH01,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=TEAL,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=toyotaea2,DC=toyota,DC=com'.
[01/23/2019 10:48:36.0550] [0] 'BridgeheadRole' is installed on the server object.
[01/23/2019 10:48:36.0550] [0] 'ClientAccessRole' is installed on the server object.
[01/23/2019 10:48:36.0550] [0] 'MailboxRole' is installed on the server object.
[01/23/2019 10:48:36.0550] [0] The installation mode is set to: 'Uninstall'.
[01/23/2019 10:48:36.0597] [0] An Exchange organization with name 'TEAL' was found in this forest.
[01/23/2019 10:48:36.0597] [0] Active Directory Initialization status : 'True'.
[01/23/2019 10:48:36.0597] [0] Schema Update Required Status : 'False'.
[01/23/2019 10:48:36.0597] [0] Organization Configuration Update Required Status : 'False'.
[01/23/2019 10:48:36.0597] [0] Domain Configuration Update Required Status : 'False'.
[01/23/2019 10:48:36.0612] [0] The locally installed version is 14.3.123.4.
[01/23/2019 10:48:36.0612] [0] Exchange Installation Directory : 'C:\Program Files\Microsoft\Exchange Server\V14'.
[01/23/2019 10:48:36.0722] [0] Applying default role selection state
[01/23/2019 10:48:36.0722] [0] Applying default role selection state
[01/23/2019 10:48:36.0722] [0] Setup will run from path 'C:\Program Files\Microsoft\Exchange Server\V14\'.
[01/23/2019 10:48:36.0816] [0] UninstallModeDataHandler has 6 DataHandlers
[01/23/2019 10:48:36.0816] [0] RootDataHandler has 1 DataHandlers
[01/23/2019 10:48:36.0816] [0] The following server roles will be removed
[01/23/2019 10:48:36.0831] [0] Hub Transport Role
[01/23/2019 10:48:36.0862] [0] Validating options for the 1 requested roles
[01/23/2019 10:48:36.0862] [0] UninstallModeDataHandler has 6 handlers and 6 work units
[01/23/2019 10:48:36.0878] [0] Performing Microsoft Exchange Server Prerequisite Check
[01/23/2019 10:48:37.0784] [0] **************
[01/23/2019 10:48:37.0784] [0] Setup will run the task 'Start-PreConfiguration'
[01/23/2019 10:48:37.0784] [1] Setup launched task 'Start-PreConfiguration -Mode 'Uninstall' -Roles 'BridgeheadRole''
[01/23/2019 10:48:38.0753] [1] Active Directory session settings for 'Start-PreConfiguration' are: View Entire Forest: 'True', Configuration Domain Controller: 'TKEN-NGN-DC01.toyotaea2.toyota.com', Preferred Global Catalog: 'TKEN-NGN-DC01.toyotaea2.toyota.com', Preferred Domain Controllers: '{ TKEN-NGN-DC01.toyotaea2.toyota.com }'
[01/23/2019 10:48:38.0753] [1] Beginning processing Start-PreConfiguration -Mode:'Uninstall' -Roles:'BridgeheadRole'
[01/23/2019 10:48:38.0800] [1] Loaded component 'Prereq Configuration' with 3 task information blocks from 'res://AllServerRolesPreConfig.xml'
[01/23/2019 10:48:38.0800] [1] Loaded component 'Prereq Configuration' with 1 task information blocks from 'res://AllADRolesPreConfig.xml'
[01/23/2019 10:48:38.0816] [1] Loaded component 'Prereq Configuration' with 1 task information blocks from 'res://BridgeheadPreConfig.xml'
[01/23/2019 10:48:38.0816] [1] Writing informational script to 'C:\ExchangeSetupLogs\Start-PreConfiguration-20190123-1348380816529514859.ps1'
[01/23/2019 10:48:38.0816] [1] Executing: $RoleADToolsNeeded = $False
[01/23/2019 10:48:38.0816] [1] Executing: $RoleBinPath = 'C:\Program Files\Microsoft\Exchange Server\V14\Bin'
[01/23/2019 10:48:38.0816] [1] Executing: $RoleDatacenterPath = 'C:\Program Files\Microsoft\Exchange Server\V14\Datacenter'
[01/23/2019 10:48:38.0816] [1] Executing: $RoleInstallationMode = 'Uninstall'
[01/23/2019 10:48:38.0816] [1] Executing: $RoleInstallPath = 'C:\Program Files\Microsoft\Exchange Server\V14\'
[01/23/2019 10:48:38.0831] [1] Executing: $RoleInstallWindowsComponents = $False
[01/23/2019 10:48:38.0831] [1] Executing: $RoleInvocationID = '20190123-1348380816529514859'
[01/23/2019 10:48:38.0831] [1] Executing: $RoleIsDatacenter = $False
[01/23/2019 10:48:38.0831] [1] Executing: $RoleIsPartnerHosted = $False
[01/23/2019 10:48:38.0831] [1] Executing: $RoleIsServerSbs = $False
[01/23/2019 10:48:38.0831] [1] Executing: $RoleIsWindows8OrHigher = $False
[01/23/2019 10:48:38.0831] [1] Executing: $RoleLoggingPath = 'C:\Program Files\Microsoft\Exchange Server\V14\Logging'
[01/23/2019 10:48:38.0831] [1] Executing: $RoleProductPlatform = 'amd64'
[01/23/2019 10:48:38.0831] [1] Executing: $RoleRoles = 'BridgeheadRole'
[01/23/2019 10:48:38.0831] [1] Executing: $RoleSetupLoggingPath = 'C:\ExchangeSetupLogs'
[01/23/2019 10:48:38.0831] [1] Executing: $RoleTargetVersion = '14.03.0417.001'
[01/23/2019 10:48:38.0831] [1] Reversing task list to uninstall for Exchange 2010 SP1.
[01/23/2019 10:48:38.0831] [1] 4 tasks were found to execute.
[01/23/2019 10:48:38.0831] [1] Processing component 'Prereq Configuration' (Configuring the server.).
[01/23/2019 10:48:38.0831] [1] Processing component 'Prereq Configuration' (Configuring the server.).
[01/23/2019 10:48:38.0831] [1] Executing:
if (Get-Service W3Svc* | ?{$_.Name -eq 'W3Svc'})
{
Set-Service W3Svc -StartupType Automatic
Start-SetupService -ServiceName W3Svc
}

[01/23/2019 10:48:38.0894] [2] Active Directory session settings for 'start-SetupService' are: View Entire Forest: 'True', Configuration Domain Controller: 'TKEN-NGN-DC01.toyotaea2.toyota.com', Preferred Global Catalog: 'TKEN-NGN-DC01.toyotaea2.toyota.com', Preferred Domain Controllers: '{ TKEN-NGN-DC01.toyotaea2.toyota.com }'
[01/23/2019 10:48:38.0894] [2] Beginning processing Start-SetupService -ServiceName:'W3Svc'
[01/23/2019 10:48:38.0894] [2] Ending processing Start-SetupService
[01/23/2019 10:48:38.0894] [1] Processing component 'Prereq Configuration' (Configuring the server.).
[01/23/2019 10:48:38.0894] [1] Executing:
$windowsVersion = [Environment]::OSVersion.Version
if ($windowsVersion.Major -eq 6 -and $windowsVersion.Minor -eq 0)
{
if (Get-Service MpsSvc* | ?{$_.Name -eq 'MpsSvc'})
{
Set-Service MpsSvc -StartupType Automatic
Start-SetupService -ServiceName MpsSvc
}
}

[01/23/2019 10:48:38.0894] [1] Executing:
if (Get-Service WinMgmt* | ?{$_.Name -eq 'WinMgmt'})
{
Set-Service WinMgmt -StartupType Automatic
Start-SetupService -ServiceName WinMgmt
}

[01/23/2019 10:48:38.0909] [2] Active Directory session settings for 'start-SetupService' are: View Entire Forest: 'True', Configuration Domain Controller: 'TKEN-NGN-DC01.toyotaea2.toyota.com', Preferred Global Catalog: 'TKEN-NGN-DC01.toyotaea2.toyota.com', Preferred Domain Controllers: '{ TKEN-NGN-DC01.toyotaea2.toyota.com }'
[01/23/2019 10:48:38.0909] [2] Beginning processing Start-SetupService -ServiceName:'WinMgmt'
[01/23/2019 10:48:38.0909] [2] Ending processing Start-SetupService
[01/23/2019 10:48:38.0909] [1] Executing:
if (Get-Service RemoteRegistry* | ?{$_.Name -eq 'RemoteRegistry'})
{
Set-Service RemoteRegistry -StartupType Automatic
Start-SetupService -ServiceName RemoteRegistry
}

[01/23/2019 10:48:38.0909] [2] Active Directory session settings for 'start-SetupService' are: View Entire Forest: 'True', Configuration Domain Controller: 'TKEN-NGN-DC01.toyotaea2.toyota.com', Preferred Global Catalog: 'TKEN-NGN-DC01.toyotaea2.toyota.com', Preferred Domain Controllers: '{ TKEN-NGN-DC01.toyotaea2.toyota.com }'
[01/23/2019 10:48:38.0909] [2] Beginning processing Start-SetupService -ServiceName:'RemoteRegistry'
[01/23/2019 10:48:38.0909] [2] Ending processing Start-SetupService
[01/23/2019 10:48:38.0909] [1] Finished executing component tasks.
[01/23/2019 10:48:38.0909] [1] Ending processing Start-PreConfiguration
[01/23/2019 10:48:38.0956] [0] **************
[01/23/2019 10:48:38.0956] [0] Setup will run the task 'test-setuphealth'
[01/23/2019 10:48:38.0956] [1] Setup launched task 'test-setuphealth -DomainController 'TKEN-NGN-DC01.toyotaea2.toyota.com' -DownloadConfigurationUpdates $true -ExchangeVersion '14.3.417.1' -Roles 'Bridgehead' -ScanType 'PrecheckUninstall' -SetupRoles 'Bridgehead' -TargetDir 'C:\Program Files\Microsoft\Exchange Server\V14''
[01/23/2019 10:48:38.0972] [1] Active Directory session settings for 'test-SetupHealth' are: View Entire Forest: 'True', Configuration Domain Controller: 'TKEN-NGN-DC01.toyotaea2.toyota.com', Preferred Global Catalog: 'TKEN-NGN-DC01.toyotaea2.toyota.com', Preferred Domain Controllers: '{ TKEN-NGN-DC01.toyotaea2.toyota.com }'
[01/23/2019 10:48:38.0972] [1] Beginning processing test-setuphealth -DomainController:'TKEN-NGN-DC01.toyotaea2.toyota.com' -DownloadConfigurationUpdates:'True' -ExchangeVersion:'14.3.417.1' -Roles:'Bridgehead' -ScanType:'PrecheckUninstall' -SetupRoles:'Bridgehead' -TargetDir:'C:\Program Files\Microsoft\Exchange Server\V14'
[01/23/2019 10:50:04.0458] [1] [ERROR] Unexpected Error
[01/23/2019 10:50:04.0458] [1] [ERROR] This specified ScanType (PrecheckUninstall) is not defined in the configuration file.
Parameter name: ScanType
[01/23/2019 10:50:04.0458] [1] Ending processing test-setuphealth
[01/23/2019 10:50:04.0458] [0] The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.
[01/23/2019 10:50:04.0474] [0] End of Setup
[01/23/2019 10:50:04.0474] [0] **********************************************

I am thinking it may be best to just run setup.com /m:recoverserver and then try uninstalling again.

Should I run setup.com /m:recoverserver on the existing install or do you think I should format the server first?

@Navishkar Sadheo  Dont format the server that will leads to many issues.

 

Recoverserver switch command will work only if exchange server completely failed to boot. 

 

some exchange services still running on that server which prevent to uninstall exchange server application. try netstat -a command to see if any client connection.

 

Is this server has multi role installed. can you run the below command and upload get-exchangeserver

The server is a multi-role.

I really have no other choice at this moment. Format, recover and then hopefully I will be able to uninstall gracefully.