Silent uninstall of Office 2010 administrator error
I'm new to this site and new to Kace.
My issue is that when I try to uninstall Office 2010 via
C:\Program Files\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\setup.exe" /uninstall STANDARD /dll OSETUP.DLL /config C:\app\config.xml
and use the config file
However I am getting an administrator error show in the pic
I'm at a loss as to why, because I have case running the uninstall as SYSTEM via KACE, and I've tried running the batch file as local admin and network admin.
Also, we want to uninstall Office 2010 while keeping 2016 on user's computers(yes, we have both, I know), so a complete Office remove tool is out for now.
Please advise on what to do next.
Please log in to answer
Posted by: vjaneczko 2 years ago
It's been a while for me so I'm not remembering the "/DLL" switch but we never used it, so that may be causing an issue for you.
Here's the syntax of an old uninstall config file which would create a log file. Modify as appropriate and use this to see if there's any further information coming from the EXE:
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<Logging Type="Verbose" Path="c:\install_logs" Template="Office 2010 Uninstall.log" />
<Setting Id="SETUP_REBOOT" Value="Never" />
Posted by: pbrandvold 2 years ago
I don't have an answer for your exact problem, but the office scrub scripts allow you to remove only certain versions of office: https://github.com/OfficeDev/Office-IT-Pro-Deployment-Scripts/tree/master/Office-ProPlus-Deployment/Remove-PreviousOfficeInstalls
You can set up a powershell script that just calls "Remove-PreviousOfficeInstalls" with parameters. Here are the examples listed:
In this example all Office products, except for click to run or 2016, will be removed.
Remove-PreviousOfficeInstalls -ProductsToRemove MainOfficeProduct,Visi0
In this example the primary office product and Visio will be removed.Click-To-Run or 2016
products will not be removed.
Remove-PreviousOfficeInstalls -ProductsToRemove MainOfficeProduct -RemoveClickToRunVersions $true
In this example the primary Office product will be removed even if it is Click-To-Run.
I think that will be a cleaner way for you to do this.