Article ID: 125501, created on May 14, 2015, last review on May 14, 2015

  • Applies to:
  • Virtuozzo containers for Windows

Symptoms

Microsoft Office installed to containers from the template with pre-loaded MAK key may lose activation on container restart.

Querying the office activation state through Office Software Protection Provider gives the following errors:

  • If the template was not activated:

    C:\Program Files\Microsoft Office\Office15>cscript ospp.vbs /dstatus
    <No installed product keys detected>
    
  • If the template was activated:

    C:\Program Files\Microsoft Office\Office15>cscript ospp.vbs /dstatus
    ERROR CODE: 0x80041010
    

Cause

Security tokens related to sppsvc get reverted to the initial status on container restart. This behavior is recognized as a product issue PCWIN-22403.

Resolution

The issue is planned to be fixed in one of the next Odin Containers for Windows updates.

Workaround

Office in containers can be re-activated during each start up via the script:

%vzroot%\private\CTID\scripts\vz-poststart.cmd

@echo off
setlocal

REM 
REM   Input parameter - VPS ID
REM

set VPSID=%1

REM 
REM   check if parameter is valid
REM 
if A%VPSID%A == AA  goto bad_usage

REM
REM PCWIN-22403, office activation w/a
REM

vzctl exec2  --skiplock %VPSID% cscript.exe "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /inpkey:XXXX-XXXX-XXXX-XXXX-XXXX 
vzctl exec2  --skiplock %VPSID% cscript.exe "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /act

exit /b 0
  • In the example above, replace /inpkey: with your MS Office activation MAK key.
  • Path to ospp.vbs can be different depending on MS Office version installed.

Search Words

Office Activation

Office Template

MAK Activation

965b49118115a610e93635d21c5694a8 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f

Email subscription for changes to this article
Save as PDF