For several years we have uninstalled Office using a command like:
\\cal-s2\office365$\Office365ProPlus\setup.exe /uninstall ProPlus /config \\cal-s2\office365$\uninstall-Office365ProPlus.xml
but it now errors out with:
Office Deployment Tool
SETUP [mode] [path]
SETUP /download [path to configuration file]
SETUP /configure [path to configuration file]
SETUP /packager [path to configuration file] [output path]
SETUP /customize [path to configuration file]
/download Downloads files to create an Office installation source
/configure Adds, removes, or configures an Office installation
/packager Produces an Office App-V package from an Office installation source
/customize Applies settings for Office applications
This indicates that the /UNINSTALL switch no longer functions and that /CONFIGURE is what must now be used to remove apps.
You can still use the Office Deployment Tool Setup.exe (which you can source directly from Microsoft HERE)
\\<server path>\setup.exe /configure \\<server path>\uninstall-Office365ProPlus.xml
so with UNC paths, mine looks like:
\\cal-s2\office365$\Office365ProPlus\setup.exe /configure \\cal-s2\office365$\uninstall-Office365ProPlus.xml
with uninstall-Office365ProPlus.xml containing
<Configuration>
<Display Level="None" AcceptEULA="True" />
<Property Name="FORCEAPPSHUTDOWN" Value="True" />
<Remove>
<Product ID="O365ProPlusRetail">
</Product>
</Remove>
</Configuration>
This website uses cookies.
View Comments
What is the .xml for uninstalling Visio?
you can try editing your installation .xml and replace <Add and </Add with <Remove and </Remove.
This article is very useful. I used config file to uninstall office 2019 click to run product with below config settings.
thanks dear its working fine...
Did you mnage to implement the uninstall using SCCM?
Hi Stoian; No, we decided to push it using just PDQ, sorry.
NICE!! This works when nothing else did. Thanks!
Amusing - was just working on this and found your reply on that technet thread :) Serendipitous! Appreciate the write-up. Will be baking a very similar solution into SCCM for a Software Center uninstall, let's see if it works...