To activate Office 2016 in a Task Sequence, create two Run Commands in the Post Setup group:
32 Bit
#1
cmd /c cscript.exe “C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs” /inpkey:SSSSS-DDDDD-WWWWW-TTTTT-GGGGG
#2
cmd /c cscript.exe “C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs” /act
64 Bit
#1
cmd /c cscript.exe “C:\Program Files\Microsoft Office\Office16\ospp.vbs” /inpkey:SSSSS-DDDDD-WWWWW-TTTTT-GGGGG
#2
cmd /c cscript.exe “C:\Program Files\Microsoft Office\Office16\ospp.vbs” /act
* Note, this is for Office 32 bit.