Office Install Tasks

less than 1 minute read

Description:

Follow these steps to help with uninstalling, reactivating, or installing Office.

To Resolve:

To Uninstall All Versions Of Office From Machine:

  1. Download the Office Deployment Tool

  2. Extract to c:\scripts and rename setup.exe to odt.exe

  3. Configure a configuration file (XML): XML Editor

    • I create uninstall.xml at c:\scripts with the following value:
    1
    2
    3
    
    <Configuration>
       <Remove All="TRUE"/>
    </Configuration>
    
  4. Open Powershell in C:\scripts and run:

    1
    
    & .\odt.exe /configure .\uninstall.xml
    

To Change A Product Key:

  1. Get new key and copy to a text file so we can copy and paste from.

  2. Run each line one by one in elevated CMD or Powershell:

    1
    2
    3
    4
    5
    6
    7
    
    cd C:\Program Files (x86)\Microsoft Office\Office16
    cscript ospp.vbs /dstatus
    :: shows XQBQ9
    cscript ospp.vbs /unpkey:XQBQ9
    cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    cscript ospp.vbs /act
    :: Open office, should be activated!
    

To Deploy Office 365:

  1. Create a ProPlusInstallGenerator to create a .msi. Alternatively, see about github.com/OfficeDev/Office-IT-Pro-Deployment-Scripts under the deployment section. More details:

  2. Deploy the MSI as part of a task sequence in MDT (imaging), as a GPO, or manually.

-----------------------------------------------------------
Spotted a mistake in this article? Why not suggest an edit!
Did you like the article? Donations are always welcome!
-----------------------------------------------------------

Comments