Office Migration

Office Migration

An interesting issue came up recently about migrating Office from 2010 to 2013. After Office has been on a machine a while, it may need an extra push to get uninstalled. To help with this, Microsoft released a Fixit to help, found here: https://support.microsoft.com/en-us/kb/971179. The issue with this is that it cannot be automatically deployed. There are ways around this, though, to make it deployable with SCCM.

OffScrub VBS

First, download the correct version for Office and Windows. Now, use your favorite extract tool, such as 7zip, to extract the package. Inside, depending on the version of Office or Windows, you find a VBS script called OffScrub10.vbs (OffScrub7.vbs for Office 2007). This is the script we need.

After you have the VBS script, open it for editing in Notepad, or more preferably, Notepad++. In my version, we are looking for line 140, but incase that doesn’t line up with your version, you’re looking for the line:

If NOT CheckRegPermissions Then

Comment out this enter IF statement, all the way down to “End If”.

Untitled-1

For some reason, the registry check fails when deploying it from SCCM, and you get the error stated in that code: “Insufficient registry access permissions – exiting”. We already know that SCCM executes as the SYSTEM account, which allows it read/write access to the registry, so this check is not really needed anyway.

Installation Script

Now that we have the VBS script in a working condition, we can write a batch file to uninstall Office 2010 and install 2013. For the Office installation to be automated, you will have to create a MSP using the Office administration tool. It is accessible by opening a command prompt in your Office installation directory and running “setup.exe /admin”. You will be able to customize your Office install from here. A few things to pay attention to are the display level – you want it on at least basic, and product key. If you have a KMS server or volume license key, make sure you enter that information into your customization.

After you customize your install, here is the batch file to run the uninstallation of Office 2010, install Office 2013, and activate Office 2013. Obviously, you will need to leave the activate step off if you are not using KMS or a volume license.

cscript OffScrub10.vbs ALL /q

setup.exe /adminfile silent.msp

cscript “C:\Program Files (x86)\Microsoft Office\Office15\ospp.vbs” /act

If you want to log your Office 2010 uninstall, add this to end of the first line – “/log C:\<path>”. Also, adjust the path to your Office installation directory as needed for your architecture of Windows and Office. This line represents installing Office 32-bit on Windows 64-bit.

From here, you can add this SCCM as a package or application. Hopefully this helps you get your Office environment up to 2013.

Share:

Facebook
Twitter
LinkedIn
Picture of Matt Tinney

Matt Tinney

Professional IT executive & business leader having decades of experience with Microsoft technologies delivering modern-day cloud & security solutions.

Contact Us

=
On Key

More Posts

WME Cybersecurity Briefings No. 020
Cyber Security

WME Security Briefing 26 July 2024

Pro-Houthi Group Targets Yemen Aid Organizations with Android Spyware Overview A suspected pro-Houthi group, OilAlpha, is targeting humanitarian organizations in Yemen with advanced Android spyware. The operation is associated with the activity cluster codenamed OilAlpha. It

Read More »
WME Cybersecurity Briefings No. 019
Cyber Security

WME Security Briefing 23 July 2024

Samba File Shares Targeted by DarkGate Malware in Recent Cyber Offensive Overview Recent investigations by Palo Alto Networks uncover a brief but significant cyberattack campaign utilizing DarkGate malware. This malicious software exploited Samba file shares to

Read More »
WME Cybersecurity Briefings No. 018
Cyber Security

WME Security Briefing 15 July 2024

OVHcloud Mitigates Record-Breaking 840 Million PPS DDoS Attack Overview In April 2024, OVHcloud, a top French cloud computing firm, successfully stopped a massive DDoS attack. The attack hit a record-breaking rate of 840 million packets per second

Read More »
E-Commerce Security - Solutions for Online Retailers
Azure

E-commerce Security – Solutions for Online Retailers

Today’s hyper-charged e-commerce landscape demands top-notch cybersecurity measures. Cybersecurity for this bustling sector isn’t just about ticking a technical box; it’s the cornerstone of building trust. As businesses and consumers flock to the online space, the

Read More »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.

=