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
Security tokens related to sppsvc get reverted to the initial status on container restart. This behavior is recognized as a product issue PCWIN-22403.
The issue is planned to be fixed in one of the next Odin Containers for Windows updates.
Office in containers can be re-activated during each start up via the script:
@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.vbscan be different depending on MS Office version installed.