SOLVED: Command Line To Uninstall Office365 Pro Plus

PROBLEM:

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.

SOLUTION:

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>

Comments

  1. Avatar
    Stoian Ionut Bogdan September 3, 2019 at 12:13 am

    Did you mnage to implement the uninstall using SCCM?

    • Ian Matthews
      Ian Matthews September 8, 2019 at 11:21 pm

      Hi Stoian; No, we decided to push it using just PDQ, sorry.

  2. Avatar
    Troy April 19, 2019 at 7:36 am

    NICE!! This works when nothing else did. Thanks!

  3. Avatar
    David Richmond March 11, 2019 at 4:29 pm

    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…

Leave a Reply