Office 365 activation instructions from Microsoft

Many of our customers request information about Office product licensing, and what to do from a testing perspective.  Pieter Wigleven from his twitter account shared the following trick:

Want to do automated M365 Apps for Enterprise (formerly Office 365 ProPlus) testing but running into issues? Follow these steps: 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"

mceclip0.png

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, then the ospp.vbs will be in same path but in "Program Files (x86)"

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

If your 5-days runs out, then 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, then the ospp.vbs will be in same path but in "Program Files (x86)"

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