Skip to main content
Skip table of contents

Activating Office 365

Overview

Many Login Enterprise customers often inquire about Office product licensing and seek guidance on testing procedures. In response to this common query, we'd like to share a helpful tip shared by Pieter Wigleven via his Twitter account.

While not an official recommendation from Microsoft, Pieter's suggestion offers a potential workaround if you're encountering issues with automated testing of M365 Apps for Enterprise (formerly Office 365 ProPlus). 

Configuration and Activation

After installing Office, install a 10-day subscription key using an elevated command prompt:

CODE
cscript "C:\Program files\Microsoft Office\Office16\OSPP.VBS" /inpkey:DRNV7-VGMM2-B3G9T-4BF84-VMFTK

or, if x86 Office install on x64 image, then

CODE
cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /inpkey:DRNV7-VGMM2-B3G9T-4BF84-VMFTK

In regedit, to "Disable Activation UI" (prevent Office popup) create the registry path:

CODE
"DisableActivationUI", value: "1" (DWORD) to "HKLM\Software\Microsoft\Office\16.0\Common\Licensing" path

or, if you are installing 32bit Office on 64bit Windows, then:

CODE
"HKLM\Software\Wow6432Node\Microsoft\Office\16.0\Common\Licensing"

Finally, in regedit, to "Accept EULA" (prevent Office popup) create the registry path:

CODE
"AcceptAllEulas", value: "1" (DWORD) to "HKCU\Software\Microsoft\Office\16.0\Registration" path

or, if you are installing 32bit Office on 64bit Windows, then:

CODE
"HKCU\Software\Wow6432Node\Microsoft\Office\16.0\Registration"

Checking and Extending License Duration

If you want to see how much time you have left with this license, you can use the following command:

CODE
cscript "C:\Program files\Microsoft Office\Office16\OSPP.VBS" /dstatus

Or, if Office x86 on x64 image, the ospp.vbs will be in the same path but in "Program Files (x86)"

CODE
cscript "C:\Program files (x86)\Microsoft Office\Office16\OSPP.VBS" /dstatus

If your 5-day subscription runs out, you can run this command to get another 5 days.

CODE
cscript "C:\Program files\Microsoft Office\Office16\OSPP.VBS" /rearm

Or, if Office x86 on x64 image, the ospp.vbs will be in the same path but in "Program Files (x86)"

CODE
cscript "C:\Program files (x86)\Microsoft Office\Office16\OSPP.VBS" /rearm

Important Notice

If you are running your machines with Shared Computer Licensing and also with Viewer Mode enabled to stop activation prompts for unlicensed users, this scenario may cause issues.

Before activating Office 365, you need to update the following registry keys:

HKLM\Software\Microsoft\Office\ClickToRun\Configuration
SharedComputerLicensing (DWORD) = 0

HKLM\Software\Policies\Microsoft\Office\16.0\Common\Licensing\
ViewerMode (DWORD) = 0

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.