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
Identify the version of Office to uninstall.
Select the appropriate VBS script file from the list above according to which version to uninstall.Steps to add script:
Go to:
Configurationtab →Script Repository→Add ScriptScript Name: Upload the VBS script file for the Office version to be removed from the device. (Files are attached.)
Script Arguments:
0Platform:
WindowsDescription: Can be filled according to customer request.
A screenshot is attached for reference.
Steps to create configuration:
Go to:
Configuration→Select Windows→Custom Script→Select ComputerConfiguration Name: Specify a suitable name.
Repository: Select
Execute scriptoption.Script Name: Select the previously created script.
Script Arguments:
(Not required for this operation.)
Specify the exit code:
0Frequency:
OnceEnable 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.
If you need support on this issue, you can contact our technical team via our e-mail address
destek@wotech.com.tr .