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   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity


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

Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja