Office Install Tasks
Description:
Follow these steps to help with uninstalling, reactivating, or installing Office.
To Resolve:
To Uninstall All Versions Of Office From Machine:
-
Download the Office Deployment Tool
-
Extract to
c:\scripts
and renamesetup.exe
toodt.exe
-
Configure a configuration file (XML): XML Editor
- I create
uninstall.xml
atc:\scripts
with the following value:
1 2 3
<Configuration> <Remove All="TRUE"/> </Configuration>
- I create
-
Open Powershell in
C:\scripts
and run:1
& .\odt.exe /configure .\uninstall.xml
To Change A Product Key:
-
Get new key and copy to a text file so we can copy and paste from.
-
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:
-
Create a ProPlusInstallGenerator to create a .msi. Alternatively, see about github.com/OfficeDev/Office-IT-Pro-Deployment-Scripts under the deployment section. More details:
-
Deploy the MSI as part of a task sequence in MDT (imaging), as a GPO, or manually.
Comments