Activating Office 365

Overview

Configuration and activation

Checking and extending license duration

Important notice

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:

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

or, if x86 Office install on x64 image, then

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:

"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:

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

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

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

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

"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:

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)"

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.

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)"

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