Jump to content


Kevin79

Deploying Office 2013 and KMS activation

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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
  • Like 1

Share this post


Link to post
Share on other sites

 

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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.