Kevin79 Posted September 17, 2015 Report post Posted September 17, 2015 I am having a strange issue I hope someone can help me with. I have a package created for Office 2013 Pro with SP1. When I deploy it as part of a collection (not during OSD) it activates automatically. If I add it as part of an OSD task sequence and apply the available Windows Updates, it doesn't activate. Has anyone ever seen this before? Quote Share this post Link to post Share on other sites More sharing options...
Peter33 Posted September 17, 2015 Report post Posted September 17, 2015 Run this batch as part of your task sequence. Should solve your problem. @echo off :OSPP reg query HKLM\Software\Microsoft\Office\15.0\Common\OSPPREARM if %errorlevel%==1 (goto RUN) else (goto END) :RUN set ProgramFilesPath=%ProgramFiles% "%ProgramFilesPath%\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.EXE" C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office15\ospp.vbs" /act set ProgramFilesPath=%ProgramFiles(x86)% "%ProgramFilesPath%\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.EXE" C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office15\ospp.vbs" /act REG ADD "HKLM\Software\Microsoft\Office\15.0\Common\OSPPREARM" :END Exit 1 Quote Share this post Link to post Share on other sites More sharing options...
Kevin79 Posted September 17, 2015 Report post Posted September 17, 2015 Run this batch as part of your task sequence. Should solve your problem. @echo off :OSPP reg query HKLM\Software\Microsoft\Office\15.0\Common\OSPPREARM if %errorlevel%==1 (goto RUN) else (goto END) :RUN set ProgramFilesPath=%ProgramFiles% "%ProgramFilesPath%\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.EXE" C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office15\ospp.vbs" /act set ProgramFilesPath=%ProgramFiles(x86)% "%ProgramFilesPath%\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.EXE" C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office15\ospp.vbs" /act REG ADD "HKLM\Software\Microsoft\Office\15.0\Common\OSPPREARM" :END Exit Thanks. Do I need to do anything special to run a batch script in my task sequence or can I just make a package that runs it and run that package? Quote Share this post Link to post Share on other sites More sharing options...
Peter33 Posted September 17, 2015 Report post Posted September 17, 2015 A simple package will do. It's the way i run it too, as one of the last steps in the TS. Quote Share this post Link to post Share on other sites More sharing options...
Kevin79 Posted September 17, 2015 Report post Posted September 17, 2015 Thanks, that worked. Quote Share this post Link to post Share on other sites More sharing options...