Uninstall Office 2010/2013 Deploy 2016
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"
<Add Channel="Current" OfficeClientEdition="64"
<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.
Please log in to answer
Posted by: dubritski 2 years ago
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
Posted by: dragosCI 2 years ago
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]