

You can download the O15CTRRemove.diagcab package for different versions of Office and Windows from the page (). vbs script for the corresponding version of Office.įirst of all, you need to download the file from the Microsoft website FixIt for those versions of Office and Windows that are used in your infrastructure. The script from the O15CTRRemove.diagcab package allows you to determine the installed version of Office and call the Offscrub *. Removal of obsolete settings and all products (including Project, Visio, Visio Viewer).The user's hive in the registry is not affected.


These scripts allow you to completely clean the system of traces of previously installed Office, regardless of its current performance. Offscrub scripts are vbs scripts for automating the removal of products from Office. diagcab which also includes OffScrub scripts (see footnote just below) Scripts OffScrub are included in the packages of the official EasyFix packages (a package of forced removal of Office 20 if they cannot be removed in the standard way from the Control Panel) To remove Office 20, another tool is used - the package O15 CTRRemove. VBS scripts OffScrubĪfter looking at several ways to uninstall previously installed Office versions, we settled on using OffScrub scripts from Microsoft Premier Support. Therefore, it became necessary to develop scripts that would correctly remove any version of Office previously installed on a PC. In most cases, before installing new version Office, it is advisable to remove any versions of MS Office previously installed on the computer (the simultaneous use of different versions of Office on the same computer is supported, but not recommended due to potential problems).

It is supposed to use these scripts in tasks for automatic removal / installation of Office through SCCM packages. #loop till the end of the array searching for the $o365 stringįor ($i=0 $i -lt $license.As part of the task to bulk update Office to latest version on the computers of all users (according to the scheme), we needed to develop a simple solution for the correct automatic removal of any other versions of Microsoft Office previously installed on computers. $o365 = “OfficeO365ProPlusR_Subscription1 edition” $license = cscript ‘C:\Program Files\Microsoft Office\Office15\OSPP.VBS’ /dstatus *** the credential portion will ask you for credentials make sure the ones you use have admin rights on the workstation *** Invoke-command -computername -credential (get-credential) -filepath Its in powershell so you can invoke-command it against a remote workstation as you need to by doing the following from a PS prompt: The following script will find the product key for O365 (ProPlus in this case) and unlicensed the product.
