Uninstalling all version of MS Office products 2010, 2013, 2016 & 2019

Question

Hello Friends,

I need to uninstall MS-Office products like MS-Office 2010,2013,2016 & 2019 which were installed previously on 100+ windows servers as per client requirements and I don’t have the setup files for MS-office.

I need some help/assistance about how to proceed with removal of MS-Office using application/package or scripts.

I have created a batch file which includes the below commands.
However when I target this as application/package in “Uninstall” action mode, it kills the opened word/excel but it fails in software center with error as “0x87D00325(-2016410843)” and MS-Office doesn’t get uninstall.
=================================================================
@echo off
cls
echo.
=====================================================================
echo Please be wait while MS Office is getting uninstall ….
=====================================================================

TASKKILL /F /IM WinWord.exe
TASKKILL /F /IM Excel.exe
TASKKILL /F /IM Powerpnt.exe
TASKKILL /F /IM OneNote.exe
TASKKILL /F /IM Outlook.exe

if exist “%program files (x86)%Microsoft OfficeOffice14” (“%Program Files (x86)Common FilesMicrosoft SharedOFFICE14Office Setup Controllersetup.exe /uninstall PROPLUS /dll OSETUP.DLL” /S)
PING -n 121 127.0.0.1>nul

if exist “%program files%Microsoft OfficeOffice15” (“%Program FilesCommon FilesMicrosoft SharedOFFICE15Office Setup Controllersetup.exe /uninstall PROPLUS /dll OSETUP.DLL” /S)
PING -n 121 127.0.0.1>nul

if exist “%program files (x86)%Microsoft OfficeOffice16” (“%Program Files (x86)Common FilesMicrosoft SharedOFFICE16Office Setup Controllersetup.exe /uninstall PROPLUS /dll OSETUP.DLL” /S)
PING -n 121 127.0.0.1>nul

if exist “%program files%Microsoft OfficerootOffice16” (“%Program FilesCommon FilesMicrosoft SharedClickToRunOfficeClickToRun.exe scenario=install scenariosubtype=ARP sourcetype=None productstoremove=O365ProPlusRetail.16_en-us_x-none culture=en-us version.16=16.0” /S)
PING -n 121 127.0.0.1>nul
=======================================================================

in progress 0
Rohit Goud 1 month 2 Answers 37 views Beginner 0

Leave an answer

Sorry, you do not have a permission to answer to this question .