Office Deployment Tool Hangs on "Uninstallcentennial" task for 10 minutes

OBro 96 Reputation points
2023-01-25T15:09:07.5366667+00:00

We updated our copy of the Office Deployment tool from 16.0.14931.20118 to 16.0.15928.20196 (about a year newer), and using the same configuration xml file to install Office 365, we're experiencing a problem where the installer hangs for around 10 minutes.

It seems the main error message seems to be: "Failed to use PowerShell deprovision Appx package".

We've rolled back to the old version we were using before, but obviously would like to figure out why this isn't working properly any more.

Any ideas welcome! Thanks!

Configuration file:

<Configuration ID="137bb9ce-4f35-4889-9c2f-c8e75ad7d51e">
  <Add OfficeClientEdition="64" Channel="MonthlyEnterprise" SourcePath="\\server\path\Office365" AllowCdnFallback="FALSE">
    <Product ID="O365ProPlusRetail">
      <Language ID="en-gb" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="Lync" />
      <ExcludeApp ID="Teams" />
      <ExcludeApp ID="Bing" />
    </Product>
    <Product ID="LanguagePack">
      <Language ID="en-gb" />
      <ExcludeApp ID="Bing" />
    </Product>
  </Add>
  <Property Name="SharedComputerLicensing" Value="0" />
  <Property Name="FORCEAPPSHUTDOWN" Value="TRUE" />
  <Property Name="DeviceBasedLicensing" Value="1" />
  <Property Name="SCLCacheOverride" Value="0" />
  <Updates Enabled="TRUE" />
  <Display Level="Full" AcceptEULA="TRUE" />
</Configuration>

Log excerpt:

01/25/2023 13:16:48.100	OFFICECL (0x8b4)	0x1788		Click-To-Run	anntr	Medium	::QueueTaskItem (ApiServer) - Received request to queue task item with id: {732E717C-22C1-4023-816C-7BB33BB24EAD}	
01/25/2023 13:16:48.100	OFFICECL (0x8b4)	0x1788		Click-To-Run	annua	Medium	ProcessPool::QueueTaskItem - Task UNINSTALLCENTENNIAL:{732E717C-22C1-4023-816C-7BB33BB24EAD} is being scheduled to run in this process	
01/25/2023 13:16:48.100	OFFICECL (0x8b4)	0x1b20		Activity	bjtct	Medium	ActivityStarted {"Name": "Office.ClickToRun.Scenario.InstallTaskUninstallcentennial", "CV": "ZEAYvvs2vEaxDJ+FO+DEhg.44", "ProcessIdentifier": "OfficeClickToRun.exe_16.0.15831.20222_X86_{BE184064-36FB-46BC-B10C-9F853BE0C486}"}	
01/25/2023 13:16:48.100	OFFICECL (0x8b4)	0x1b20		Click-To-Run Task Telemetry	aqvpf	Medium	Task::Execute {"ScenarioInstanceId": "B7C1B3DD-9243-435E-A951-D5B5DE041719", "TaskId": "732E717C-22C1-4023-816C-7BB33BB24EAD", "TaskType": "UNINSTALLCENTENNIAL:{732E717C-22C1-4023-816C-7BB33BB24EAD}", "TaskState": 1, "Scenario": "INSTALL", "InstallID": "1124BB4E-2CDD-40BC-A477-3CF633444213", "ScenarioSubType": "Install", "SourceType": "UNC", "MachineId": "5c6f80fb325605488d4a4ca1f1dff40e", "SessionID": "70f8fa73-22fc-4f43-9dd5-f535e783a04a", "GeoID": 242, "Ver": "16.0.15831.20252", "C2RClientVer": "16.0.15831.20222", "ContextData": "Starting task {'Attempt':'1'}"}	
01/25/2023 
01/25/2023 
01/25/2023 13:26:48.794	OFFICECL (0x8b4)	0x1b20		Click-To-Run Non Task Error	c0doz	Unexpected	PowerShellDeployment::SideloadUninstall {"MachineId": "5c6f80fb325605488d4a4ca1f1dff40e", "SessionID": "70f8fa73-22fc-4f43-9dd5-f535e783a04a", "GeoID": 242, "Ver": "16.0.15831.20252", "C2RClientVer": "16.0.15831.20222", "ErrorCode": 0, "ErrorType": "", "AppVErrorSource": "", "ErrorMessage": "", "ErrorDetails": "", "ContextData": "
01/25/2023 13:26:49.215	OFFICECL (0x8b4)	0x1b20		Click-To-Run General Telemetry	byyyu	Medium	SharedCentennial::InvokePowershell {"MachineId": "5c6f80fb325605488d4a4ca1f1dff40e", "SessionID": "70f8fa73-22fc-4f43-9dd5-f535e783a04a", "GeoID": 242, "Ver": "16.0.15831.20252", "C2RClientVer": "16.0.15831.20222", "ContextData": "{"message":"Invoked Powershell","ExitCode":"0x0"}"}	
01/25/2023 13:26:49.512	OFFICECL (0x8b4)	0x1b20		Click-To-Run General Telemetry	byyyu	Medium	SharedCentennial::InvokePowershell {"MachineId": "5c6f80fb325605488d4a4ca1f1dff40e", "SessionID": "70f8fa73-22fc-4f43-9dd5-f535e783a04a", "GeoID": 242, "Ver": "16.0.15831.20252", "C2RClientVer": "16.0.15831.20222", "ContextData": "{"message":"Invoked Powershell","ExitCode":"0x0"}"}	
01/25/2023 13:26:49.512	OFFICECL (0x8b4)	0x1b20		Click-To-Run General Telemetry	9y242	Medium	C2R::TaskUninstallCentennial::DoExecute {"MachineId": "5c6f80fb325605488d4a4ca1f1dff40e", "SessionID": "70f8fa73-22fc-4f43-9dd5-f535e783a04a", "GeoID": 242, "Ver": "16.0.15831.20252", "C2RClientVer": "16.0.15831.20222", "ContextData": "{"message":"Uninstall Centennial Office","result":"success","total attempt":"0"}"}	
01/25/2023 13:26:49.512	OFFICECL (0x8b4)	0x1b20		Click-To-Run	annvj	Medium	C2R::Worker::TaskExecutionThreadProc {"MachineId": "5c6f80fb325605488d4a4ca1f1dff40e", "SessionID": "70f8fa73-22fc-4f43-9dd5-f535e783a04a", "GeoID": 242, "Ver": "16.0.15831.20252", "C2RClientVer": "16.0.15831.20222", "ContextData": "{"message":"Task completed","Task":"UNINSTALLCENTENNIAL:{732E717C-22C1-4023-816C-7BB33BB24EAD}","TaskState":"TASKSTATE_COMPLETED"}"}	
01/25/2023 13:26:49.512	OFFICECL (0x8b4)	0x1b20		Click-To-Run	apm4b	Medium	Task::DoHandleWorkerCompleteEvent - Setting Task (732E717C-22C1-4023-816C-7BB33BB24EAD) Task State to (TASKSTATE_COMPLETED)	
01/25/2023 13:26:49.512	OFFICECL (0x8b4)	0x1b20		Click-To-Run Task Telemetry	annux	Medium	Task::DoHandleWorkerSuccessEvent {"ScenarioInstanceId": "B7C1B3DD-9243-435E-A951-D5B5DE041719", "TaskId": "732E717C-22C1-4023-816C-7BB33BB24EAD", "TaskType": "UNINSTALLCENTENNIAL:{732E717C-22C1-4023-816C-7BB33BB24EAD}", "TaskState": 6, "Scenario": "INSTALL", "InstallID": "1124BB4E-2CDD-40BC-A477-3CF633444213", "ScenarioSubType": "Install", "SourceType": "UNC", "MachineId": "5c6f80fb325605488d4a4ca1f1dff40e", "SessionID": "70f8fa73-22fc-4f43-9dd5-f535e783a04a", "GeoID": 242, "Ver": "16.0.15831.20252", "C2RClientVer": "16.0.15831.20222", "ContextData": "Task execution complete {'Attempt':'1'}"}	
01/25/2023 13:26:49.512	OFFICECL (0x8b4)	0x1b20		Click-To-Run	aqvqm	Medium	ScenarioController::UpdateScenarioProgress - {732E717C-22C1-4023-816C-7BB33BB24EAD}=100 	
01/25/2023 13:26:49.512	OFFICECL (0x8b4)	0x1b20		Click-To-Run	aqvqn	Medium	ScenarioController::UpdateScenarioProgress - total progress is now 57.	
01/25/2023 13:26:49.512	OFFICECL (0x8b4)	0x1b20		Click-To-Run	apm4d	Medium	Task::HandleTaskStateCompleted - Handling TaskState (TASKSTATE_COMPLETED) for task (732E717C-22C1-4023-816C-7BB33BB24EAD)	
01/25/2023 13:26:49.512	OFFICECL (0x8b4)	0x1b20		Click-To-Run	annu6	Medium	TaskGroup::DoHandleWorkerCompleteEvent - Task {732E717C-22C1-4023-816C-7BB33BB24EAD} complete event is handled by task {8D3B8D3F-A1B6-4149-8187-5530518A3849}	

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,170 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,010 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,381 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Emily Hua-MSFT 27,526 Reputation points
    2023-01-26T09:46:40.51+00:00

    Hi @OBro

    Please make sure you are using the latest versio of ODT.

    I also suggest you choose one test machine, uninstall Office first, then install Office from "\server\path\Office365".


    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.



  2. Limitless Technology 43,951 Reputation points
    2023-01-26T16:37:00.3433333+00:00

    Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query.

    The Office Deployment Tool (ODT) hanging on the "Uninstallcentennial" task for 10 minutes can be caused by a few different issues. Here are a few troubleshooting steps you can try:

    1. Check the ODT configuration file: Make sure that the configuration file you are using with the ODT is correct and that all the settings are correctly configured.
    2. Check the Office version: Make sure that you are running the correct version of ODT that is compatible with your Office version.
    3. Check the system requirements: Make sure that the system meets the minimum requirements for running Office.
    4. Check for updates: Make sure that your computer has the latest updates for Windows and Office. You can check for updates by going to Windows Update or by visiting the Microsoft Update website.
    5. Check for other running programs: Make sure that no other programs are running that might be conflicting with the ODT.
    6. Check for Anti-virus: Make sure that the Anti-virus software is not blocking the ODT from running. Disable the anti-virus temporarily and try running the ODT again.
    7. Check the Event Viewer: Check the event viewer for any error messages related to the Office Deployment Tool that might provide more information on the cause of the issue.
    8. Try to uninstall Office manually: Uninstall Office manually by going to Control Panel > Programs > Programs and Features, select Office and click on Uninstall.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.