Scripting Question

Uninstall Office 2010/2013 Deploy 2016

03/13/2018 11974 views
We are currently running Office 2010 Standard, Office 2013 Standard x64 and x32 and we are getting ready to deploy O365 2016.  I have been researching this all day and I am coming up with dead ends or a million hoops to jump through.  I need a way to silently uninstall those versions and deploy Office 365 2016.  I have the basic deployment built for 2016 and we use that for our K2000 Imaging, however, we want to exclude Skype for Business and OneDrive for Business.

I built that deployment but when I try to manually run the batch script I wrote, I received an error stating unable to install Office Products.  Here is my batch script:

setup.exe /configure "x64configuration.xml"

2016 Configuration:
<?xml version=1.0"?>
<Add Channel="Current" OfficeClientEdition="64"
<Product ID="O365ProPlusRetail">
<Language ID="en-us"/>
<ExcludeApp ID="Groove" ID="Lync" />
<Display AcceptEULA="True" Level="None" />
<Logging Level="Standard" Path="%temp%\OfficeDeploy"/>

I'm looking for an easy way, whether it be through K1000 or GPO, to uninstall Office 2010/2013 and deploy Office 2016.  All silently of course.

0 Comments   [ + ] Show comments


All Answers

you could run the offscrub for each version of office, this would remove all traces of earlier versions of office


and use this to build your XML file 

Answered 04/03/2018 by: dubritski
White Belt

You can try using wmi:

wmic product where (caption like "%Microsoft%Office%2010%") call uninstall /nointeractive
wmic product where (caption like "%Microsoft%Office%2013%") call uninstall /nointeractive

Or you can run the uninstall string cmd for each version:
2010: "C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\setup.exe" /uninstall [ProductName]
2013: "C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe" /uninstall [ProductName]
Answered 03/14/2018 by: dragosCI
Senior White Belt

This content is currently hidden from public view.
Reason: Removed by member request For more information, visit our FAQ's.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ