Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've created an unattended install of Office 2010 using the OCT. We are using a MAK rather than KMS (not my decision). Is there a way to activate Office 2010 after the install? Even though the key is set during the install, it does not activate.

I don't want the users to be prompted to activate since this is going to be in a lab environment.

share|improve this question
add comment

6 Answers

up vote 11 down vote accepted

In case anyone was wondering - Office installs OSPP.VBS in the office14 directory and can handle office activation, among other things.

In OCT I set it to run c:\windows\system32\cscript C:\"Program Files (x86)\Microsoft Office\Office14\OSPP.VBS" /act during post-installation.

All office products are activated after that. I have it silent install Visio, Project and then Office and have Office kick off the activation after and all three products are activated at once.

share|improve this answer
    
Update: We ended up going to KMS :) –  MDMarra Aug 18 '11 at 14:12
add comment

Not to muddy the waters on this post but I set this up using this command in OCT:
[WindowsFolder]\system32\cscript [INSTALLLOCATION]\OSPP.VBS
With the paramater of /act

Just in case someone else needs that info. Ross

share|improve this answer
add comment

Just chuck this batch in your post sysprep script, should do the trick for you. Tested working on 32bit and 64bit systems as well as different OSes.

Maybe someone can vbs this one or whatever.

activateproper.cmd

REM CUSTOMER NAME HERE
REM DATE LAST MODIFIED

set _win7vlk=XXXXX-8FFQX-YYYYY-33XHT-ZZZZZ
set _2010vlk=YYYYY-YYYYY-WQGB6-KW8P8-XXXXX

REM Use current working dir
cd /d "%~dp0"

if not defined _win7vlk if not defined _2010vlk goto :nokey

echo Checking for internet connectivity needed to activate
echo This screen will not progress until internet is established
echo If you are using firewall please disable the firewall temporarily

:LOOP
PING -n 3 google.com|find "TTL" >NUL
IF NOT ERRORLEVEL 1 goto :ENDLOOP
IF     ERRORLEVEL 1 goto :LOOP
:ENDLOOP
echo Internet Detected

echo Change the time
net time \\LANMACHINEWITHCORRECTTIME /set /y

echo Prompt to activate Windows 7 if needed
if exist "%windir%\system32\slmgr.vbs" FOR /F "tokens=5" %%a in ('cscript "%windir%\system32\slmgr.vbs" -xpr') do (set _act=%%a)
if "%_act%" neq "activated." if defined _win7vlk (
    cscript "%windir%\system32\slmgr.vbs" -ipk %_win7vlk%
    cscript "%windir%\system32\slmgr.vbs" -ato
    )

echo Prompt to activate Office 2010 if needed
if exist "%PROGRAMFILES%\Microsoft Office\Office14\WINWORD.exe" set _offver=%PROGRAMFILES%
if exist "%PROGRAMFILES% (x86)\Microsoft Office\Office14\WINWORD.exe" set _offver=%PROGRAMFILES% (x86)

if defined _offver if defined _2010vlk (FOR /F "tokens=3* delims=: " %%a in ('cscript "%_offver%\Microsoft Office\Office14\OSPP.VBS" /dstatus') do (
    if "%%a" == "---OOB_GRACE---" (cscript "%_offver%\Microsoft Office\Office14\OSPP.VBS" /inpkey:%_2010vlk%
                    cscript "%_offver%\Microsoft Office\Office14\OSPP.VBS" /act)
    if "%%a" == "---OOT_GRACE---" (cscript "%_offver%\Microsoft Office\Office14\OSPP.VBS" /inpkey:%_2010vlk%
                    cscript "%_offver%\Microsoft Office\Office14\OSPP.VBS" /act)
    if "%%a" == "---NOTIFICATIONS---" (cscript "%_offver%\Microsoft Office\Office14\OSPP.VBS" /inpkey:%_2010vlk%
                    cscript "%_offver%\Microsoft Office\Office14\OSPP.VBS" /act)
    ))



:nokey
share|improve this answer
add comment

Just an heads up guys,

Might be too late for providing a solution here for using variable instead of the hardcoded path to ospp.vbs. This is what i have to do to get it working:-

I have added [WindowsFolder]\system32\cscript.exe [INSTALLDIR]Office14\OSPP.VBS with /act in the arguments line into OCT to run post install and it worked flawlessly.

Cheers,

Kcehtrak.

share|improve this answer
add comment

You can also activate Office 2010 at the time that you install a MAK key by setting the AUTO_ACTIVATE property value. To do this, follow these steps:

In the OCT, select Modify Setup properties on the left pane, and then click Add in the right pane.

In the Add Property Value dialog box, in the Name box, type AUTO_ACTIVATE. Note that property names must be uppercase.

In the Value box, type 1, and then click OK.
share|improve this answer
add comment

I use this routinely and it works perfectly.

cscript.exe “C:\Program Files\Microsoft Office\Office14\OSPP.vbs” /act

share|improve this answer
1  
This is already posted here and accepted as the answer since June of 2010. Making clutter for the sake of promoting your blog is generally frowned upon. –  MDMarra Apr 2 '11 at 6:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.