Exchange 2019 to Se upgrade failed

Roger Sinsel 0 Reputation points
2025-10-13T16:31:55.2933333+00:00

We are getting various errors on our Exchange SE deployment. Some concern permissions issues creating the system mailboxes.
Also, when attempting to prepareAD, we get unusual local temp errors. Below is an except form the setup logs.

[10/10/2025 17:07:20.0048] [2] Active Directory session settings for 'compile-moffile' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.estimate.pvt', Preferred Global Catalog: 'DC1.estimate.pvt', Preferred Domain Controllers: '{ DC1.estimate.pvt }' [10/10/2025 17:07:20.0048] [2] User specified parameters: -MofFilePath:'C:\Windows\Temp\ExchangeSetupbin\Exchange.MOF' [10/10/2025 17:07:20.0048] [2] Beginning processing compile-moffile [10/10/2025 17:07:20.0058] [2] [WARNING] An error occurred while installing the Exchange tracing provider. The error HRESULT is '8004401e'. [10/10/2025 17:07:20.0063] [2] [WARNING] An error occurred while installing the Exchange tracing provider. The error HRESULT is '8004401e'. [10/10/2025 17:07:20.0065] [2] Ending processing compile-moffile [10/10/2025 17:07:20.0071] [2] Active Directory session settings for 'compile-moffile' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.estimate.pvt', Preferred Global Catalog: 'DC1.estimate.pvt', Preferred Domain Controllers: '{ DC1.estimate.pvt }' [10/10/2025 17:07:20.0071] [2] User specified parameters: -MofFilePath:'C:\Windows\Temp\ExchangeSetupbin\en\Exchange.MFL' [10/10/2025 17:07:20.0071] [2] Beginning processing compile-moffile [10/10/2025 17:07:20.0074] [2] [WARNING] An error occurred while installing the Exchange tracing provider. The error HRESULT is '8004401e'. [10/10/2025 17:07:20.0077] [2] [WARNING] An error occurred while installing the Exchange tracing provider. The error HRESULT is '8004401e'. [10/10/2025 17:07:20.0081] [2] Ending processing compile-moffile [10/10/2025 17:07:20.0085] [1] The following 2 error(s) occurred during task execution: [10/10/2025 17:07:20.0086] [1] 0. ErrorRecord: An error occurred while installing the Exchange tracing provider. The error HRESULT is '8004401e'. [10/10/2025 17:07:20.0086] [1] 1. ErrorRecord: An error occurred while installing the Exchange tracing provider. The error HRESULT is '8004401e'. [10/10/2025 17:07:20.0086] [1] The previous errors were generated by a non-critical task and will be ignored. [10/10/2025 17:07:20.0086] [1] Setup will continue processing component tasks... [10/10/2025 17:07:20.0087] [1] Executing: Add-FirewallException -FirewallRule (New-Object Microsoft.Exchange.Security.WindowsFirewall.MSExchangeRPCByPortRule)

[10/10/2025 17:07:20.0098] [2] Active Directory session settings for 'add-firewallexception' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.estimate.pvt', Preferred Global Catalog: 'DC1.estimate.pvt', Preferred Domain Controllers: '{ DC1.estimate.pvt }' [10/10/2025 17:07:20.0098] [2] User specified parameters: -FirewallRule:'Microsoft.Exchange.Security.WindowsFirewall.MSExchangeRPCByPortRule' [10/10/2025 17:07:20.0098] [2] Beginning processing Add-FirewallException [10/10/2025 17:07:20.0141] [2] Ending processing Add-FirewallException [10/10/2025 17:07:20.0146] [1] Executing: Add-FirewallException -FirewallRule (New-Object Microsoft.Exchange.Security.WindowsFirewall.MSExchangeRPCEPMapByPortRule)

[10/10/2025 17:07:20.0151] [2] Active Directory session settings for 'add-firewallexception' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.estimate.pvt', Preferred Global Catalog: 'DC1.estimate.pvt', Preferred Domain Controllers: '{ DC1.estimate.pvt }' [10/10/2025 17:07:20.0151] [2] User specified parameters: -FirewallRule:'Microsoft.Exchange.Security.WindowsFirewall.MSExchangeRPCEPMapByPortRule' [10/10/2025 17:07:20.0151] [2] Beginning processing Add-FirewallException [10/10/2025 17:07:20.0176] [2] Ending processing Add-FirewallException [10/10/2025 17:07:20.0181] [1] Executing: # if watson is enabled and the machine is Windows 10 then enable additional regkeys so we upload cabs if((Get-ItemProperty HKLM:\SOFTWARE\Microsoft\ExchangeServer\V1*| sort -Property PSPath -Descending | select -First 1).DisableErrorReporting -eq 0 -and (Get-WmiObject win32_operatingsystem).Version -like "10.*") { Set-ItemProperty -Path HKLM:Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection -Name "AllowTelemetry" -Value 3 -ea SilentlyContinue Set-ItemProperty -Path HKLM:Software\Policies\Microsoft\Windows\DataCollection -Name "AllowTelemetry" -Value 3 -ea SilentlyContinue }

[10/10/2025 17:07:20.0224] [1] Processing component 'Mailbox Permissions Configuration' (Configuring mailbox permissions). [10/10/2025 17:07:20.0225] [1] Executing: Set-LocalPermissions -Feature:"Mailbox"

[10/10/2025 17:07:20.0249] [2] Active Directory session settings for 'Set-LocalPermissions' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.estimate.pvt', Preferred Global Catalog: 'DC1.estimate.pvt', Preferred Domain Controllers: '{ DC1.estimate.pvt }' [10/10/2025 17:07:20.0249] [2] User specified parameters: -Feature:'Mailbox' [10/10/2025 17:07:20.0249] [2] Beginning processing Set-LocalPermissions [10/10/2025 17:07:20.0276] [2] [ERROR] The directory "C:\Windows\Temp\ExchangeSetup\Working\OleConverter" does not exist. [10/10/2025 17:07:20.0276] [2] [ERROR] The directory "C:\Windows\Temp\ExchangeSetup\Working\OleConverter" does not exist. [10/10/2025 17:07:20.0278] [2] Ending processing Set-LocalPermissions [10/10/2025 17:07:20.0282] [1] The following 1 error(s) occurred during task execution: [10/10/2025 17:07:20.0283] [1] 0. ErrorRecord: The directory "C:\Windows\Temp\ExchangeSetup\Working\OleConverter" does not exist. [10/10/2025 17:07:20.0283] [1] 0. ErrorRecord: System.ArgumentException: The directory "C:\Windows\Temp\ExchangeSetup\Working\OleConverter" does not exist. at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl) at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target) at Microsoft.Exchange.Management.Deployment.SetLocalPermissions.InternalProcessRecord() at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1() at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed) [10/10/2025 17:07:20.0286] [1] [ERROR] The following error was generated when "$error.Clear(); Set-LocalPermissions -Feature:"Mailbox"

" was run: "System.ArgumentException: The directory "C:\Windows\Temp\ExchangeSetup\Working\OleConverter" does not exist. at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl) at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target) at Microsoft.Exchange.Management.Deployment.SetLocalPermissions.InternalProcessRecord() at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1() at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)". [10/10/2025 17:07:20.0286] [1] [ERROR] The directory "C:\Windows\Temp\ExchangeSetup\Working\OleConverter" does not exist. [10/10/2025 17:07:20.0287] [1] [ERROR-REFERENCE] Id=MailboxLocalPermissionsComponent___f70043bcfee94f9591b1d67c6fb9b763 Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup [10/10/2025 17:07:20.0287] [1] Setup is stopping now because of one or more critical errors. [10/10/2025 17:07:20.0287] [1] Finished executing component tasks. [10/10/2025 17:07:20.0307] [1] Ending processing Install-MailboxRole [10/10/2025 17:07:20.0316] [0] CurrentResult console.ProcessRunInternal:198: 1 [10/10/2025 17:07:20.0318] [0] CurrentResult launcherbase.maincore:90: 1 [10/10/2025 17:07:20.0318] [0] CurrentResult console.startmain:52: 1 [10/10/2025 17:07:20.0319] [0] CurrentResult SetupLauncherHelper.loadassembly:452: 1 [10/10/2025 17:07:20.0320] [0] The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder. [10/10/2025 17:07:20.0323] [0] CurrentResult main.run:235: 1 [10/10/2025 17:07:20.0323] [0] CurrentResult setupbase.maincore:396: 1 [10/10/2025 17:07:20.0325] [0] End of Setup [10/10/2025 17:07:20.0325] [0] **********************************************

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nghia-P 5,310 Reputation points Microsoft External Staff Moderator
    2025-10-14T02:13:12.0566667+00:00

    Hi Roger Sinsel

    Welcome to Microsoft Q&A Forum!
    Have a good day and I hope you're doing well!

    Thank you for providing the detailed logs. I understand how disruptive an interrupted Exchange upgrade can be, especially during the “Mailbox Permissions Configuration” phase. Based on your logs and Microsoft’s documentation, the upgrade appears to fail because setup can’t use the temporary working path under C:\Windows\Temp\ExchangeSetup and then can’t register the tracing provider. The steps below address those conditions and the most common environmental causes.

    1. Clean up and recreate the temporary folder: 

    rd /s /q "C:\Windows\Temp\ExchangeSetup" 
    mkdir "C:\Windows\Temp\ExchangeSetup\Working\OleConverter" 
    icacls "C:\Windows\Temp" /grant "Administrators:(OI)(CI)F" /grant "SYSTEM:F" /T
    

    For details on using the icacls command to manage permissions, see Microsoft’s guidance: icacls – Microsoft Learn

    Exchange Setup copies working files to %WinDir%\Temp\ExchangeSetup. Corrupted, locked, or non-writable content here often triggers directory-related and tracing-provider errors.

    2. Verify system TEMP/TMP environment variables 

    • Check the machine-level variables (these are used by setup and services):
    [System.Environment]::GetEnvironmentVariable("TEMP", "Machine") 
    [System.Environment]::GetEnvironmentVariable("TMP", "Machine")
    
    • If either points to a redirected or non-writable location (e.g., a network path or a locked profile path), set them to a local writable directory and then sign out/restart:
    setx TEMP "C:\Windows\Temp" /M 
    setx TMP "C:\Windows\Temp" /M
    
    • Exchange Setup must write to a local drive. Non-local or non-writable TEMP/TMP locations commonly cause access errors during role installation.

    3. Extract setup locally and run from a short path:

    • Do not run setup directly from an ISO or a network share. Extract to a local folder first:
    Setup.exe /Extract:C:\ExchangeSetup
    cd C:\ExchangeSetup
    

    4. Run the upgrade with the correct privileges and AD preparation:

    Setup.exe /Mode:Upgrade /IAcceptExchangeServerLicenseTerms_DiagnosticDataON
    

    5. If errors persist (e.g., HRESULT 0x8004100E or WMI repository corruption), repair WMI

    • Verify and repair the WMI repository from an elevated Command Prompt:
    winmgmt /verifyrepository
    winmgmt /salvagerepository
    
    cd \windows\system32\wbem 
    for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s
    

    In short, the failure is consistent with Exchange Setup being unable to use the temporary working path and then failing to register the tracing provider due to access limitations. Cleaning and re-permissioning the temp area, ensuring TEMP/TMP point to a local writable path, extracting setup to a local short folder, and running the upgrade as an administrator after confirming AD preparation usually resolves this. This scenario is documented by Microsoft and does not affect your Exchange data or your Active Directory structure. Once these steps are applied, the upgrade should complete smoothly.

    I hope this helps and clarifies at least part of your issue. If you have any additional concerns or questions, or if I misunderstood anything or something is unclear, feel free to let me know. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".    

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.