Uninstall Microsoft Office (2003-2021) with Custom Script via Endpoint Central | Wotech

Uninstalling a Specific Microsoft Office Version Using Custom Script with Endpoint Central

Uninstalling a Specific Office Version

This section explains the steps to follow to remove only a specific version of Microsoft Office from the device.

Select the appropriate VBS script file for the version to be uninstalled from the following VBS script files :

You can view the script files in the attachment. If you cannot access the files, please contact us via destek@wotech.com.tr .

Script File Name Explanation
OffScrub03.vbs Used to uninstall Office 2003 products.
OffScrub07.vbs Used to uninstall Office 2007 products.
OffScrub10.vbs Used to uninstall Office 2010 products.
OffScrub_O15msi.vbs Used to uninstall Office 2013 MSI-based products.
OffScrub_O16msi.vbs Used to uninstall Office 2016 MSI-based products.
OffScrubc2r.vbs Used to uninstall Click-To-Run (C2R) based products. (This script removes all Click-To-Run applications such as Office 365, Office 2019, and Office 2021.)

Steps to Uninstall a Specific Office Version

  1. Identify the version of Office to uninstall.
    Select the appropriate VBS script file from the list above according to which version to uninstall.

  2. Steps to add script:

    • Go to: Configuration tab → Script RepositoryAdd Script

    • Script Name: Upload the VBS script file for the Office version to be removed from the device. (Files are attached.)

    • Script Arguments:

      Specify the exit code: CLIENTALL /QUIET / NOREBOOT
    • 0

    • Platform: Windows

    • Description: Can be filled according to customer request.

    • A screenshot is attached for reference.

  3. Steps to create configuration:

    • Go to: ConfigurationSelect WindowsCustom ScriptSelect Computer

    • Configuration Name: Specify a suitable name.

    • Repository: Select Execute script option.

    • Script Name: Select the previously created script.

    • Script Arguments:

      Dependency Files: CLIENTALL /QUIET / NOREBOOT
    • (Not required for this operation.)

    • Specify the exit code: 0

    • Frequency: Once

    • Enable logging for troubleshooting: Activate the option.

    • Select the target computer and click the Deploy immediately button.

    • A screenshot is attached for reference.


Additional Information

Once the above steps are completed, the selected Office version and its related components will be completely removed from the system.
It's recommended that you test the script on 1–2 test devices before rolling it out. If successful, you can apply the same method to other devices.

Reference:
Office Dev - Remove Previous Office Installs (GitHub)


If you need support on this issue, you can contact our technical team via our e-mail address

destek@wotech.com.tr .

    • Related Articles

    • Endpoint Central SIEM Integration

      EPC does not have syslog forwarding capability for operations performed on it. Note : This feature is available in Endpoint Central version 11.4.2524.01 or later. Ref: ...
    • Installing Microsoft Store Apps using Endpoint Central

      Microsoft Store can be closed on user devices. Even though the Store is closed, in some cases, applications in the Store may need to be installed on devices or these applications may need to be updated. Since Endpoint Central does not currently ...
    • Searching for Files by Name with Endpoint Central

      Aim This script allows you to use a specific file name to identify which computers have that file. You can easily search for the targeted file by running this script via Endpoint Central. Script Details The following PowerShell script searches all ...
    • "Setup_InsufficientSystemPartitionDiskSpace" error while performing Windows11 Upgrade with Endpoint Central

      Hello, In today's article, I will explain what to do when you receive the "Setup_InsufficientSystemPartitionDiskSpace" error while installing Windows11 on target machines using the Endpoint Central software. As you know, there are many types of ...
    • Tracking Custom Event Log in OpManager

      Hello, In today's article, I will share information with you about tracking Custom Event Log in OpManager software. Although the Best Practice is to use the "EventLog Analyzer" product to perform many tracking such as this, we can also perform custom ...