Highlighted
apitt Absent Member.
Absent Member.
2175 views

Office 2010 Activation. Fails if zen runs the script

Hello all,

I have a problem with Zenworks and Office 2010. We are a Windows XP shop and are using a MAK key for office. Our method for activation has worked fine in the past, but recently quit working. No changes come to mind.

Zenworks installs office 2010 just fine. At the end of the bundle zenworks does a RunScript with the following details.

%programfiles%\Microsoft Office\Office14\OSPP.VBS
/act
cscript.exe
//b

It previously worked being run as Dynamic Admin, but I have tried as Secure System User as well and it fails.

If I open office as Admin and do the GUI activation it succeeds. If i go to command line and run the same command Zenworks RunScript uses the activation succeeds.

I created a batch file with the activation command in it and running that from an Admin Cmd Prompt the activation succeeds. If i have zenworks call that same batch file (as admin or secure system user) after installing office the activation fails.

It gives error 0x80072efe

Does anyone have any ideas why the batch script will activate when I manually run it as admin, but when zenworks runs the exact same batch script as admin it fails?

Thanks,

Adam
Labels (2)
0 Likes
4 Replies
Micro Focus Expert
Micro Focus Expert

Re: Office 2010 Activation. Fails if zen runs the script

My first thought is UAC.
In your script do something such as "MD %programfiles%\mytest"
This will fail if UAC is stopping things.


On 2/28/2013 11:36 AM, apitt wrote:
>
> Hello all,
>
> I have a problem with Zenworks and Office 2010. We are a Windows XP
> shop and are using a MAK key for office. Our method for activation has
> worked fine in the past, but recently quit working. No changes come to
> mind.
>
> Zenworks installs office 2010 just fine. At the end of the bundle
> zenworks does a RunScript with the following details.
>
> %programfiles%\Microsoft Office\Office14\OSPP.VBS
> /act
> cscript.exe
> //b
>
> It previously worked being run as Dynamic Admin, but I have tried as
> Secure System User as well and it fails.
>
> If I open office as Admin and do the GUI activation it succeeds. If i
> go to command line and run the same command Zenworks RunScript uses the
> activation succeeds.
>
> I created a batch file with the activation command in it and running
> that from an Admin Cmd Prompt the activation succeeds. If i have
> zenworks call that same batch file (as admin or secure system user)
> after installing office the activation fails.
>
> It gives error 0x80072efe
>
> Does anyone have any ideas why the batch script will activate when I
> manually run it as admin, but when zenworks runs the exact same batch
> script as admin it fails?
>
> Thanks,
>
> Adam
>
>



--
Craig Wilson - MCNE, MCSE, CCNA
Novell Knowledge Partner

Novell does not officially monitor these forums.

Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
--
Please give a hearty thumbs up to any post you find helpful!
To find articles by Craig Wilson simply follow the link: Craig Wilson's Tips!
0 Likes
apitt Absent Member.
Absent Member.

Re: Office 2010 Activation. Fails if zen runs the script

I am running Windows XP, so no UAC here.

The batch file has no problem deleting files/folders though. Tested just for good measure.

I just cant grasp why it won't activate when Zenworks runs the batch file, but if i run the batch file it activates fine. I even put a pause in the batch file, and waited 10 minutes to see if its a timing issue, no luck there. I also put a pause in the batch file, and then went and ran it by hand instead of letting zen run it (Zen had the batch file sitting at the pause) and my manual run worked, but then when i unpaused the zenworks version of it, it still failed with the same code. Its like zenworks running it doesnt allow Office to connect out to the internet.
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Office 2010 Activation. Fails if zen runs the script

Probably related to this.........

http://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/11630a3e-f6bd-4b82-8d24-bc6b60daf22e

Most likely, you would need to add a few things to your script to do
something like this................

regedit /s IEproxyInfo.reg
cscript.exe %programfiles%\Microsoft Office\Office14\OSPP.VBS


The issue would be the Dynamic Profile may not have your IE Proxy info.


On 3/1/2013 2:26 PM, apitt wrote:
>
> I am running Windows XP, so no UAC here.
>
> The batch file has no problem deleting files/folders though. Tested
> just for good measure.
>
> I just cant grasp why it won't activate when Zenworks runs the batch
> file, but if i run the batch file it activates fine. I even put a pause
> in the batch file, and waited 10 minutes to see if its a timing issue,
> no luck there. I also put a pause in the batch file, and then went and
> ran it by hand instead of letting zen run it (Zen had the batch file
> sitting at the pause) and my manual run worked, but then when i unpaused
> the zenworks version of it, it still failed with the same code. Its
> like zenworks running it doesnt allow Office to connect out to the
> internet.
>
>



--
Craig Wilson - MCNE, MCSE, CCNA
Novell Knowledge Partner

Novell does not officially monitor these forums.

Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
--
Please give a hearty thumbs up to any post you find helpful!
To find articles by Craig Wilson simply follow the link: Craig Wilson's Tips!
0 Likes
apitt Absent Member.
Absent Member.

Re: Office 2010 Activation. Fails if zen runs the script

You sir are a genius. Thank you very much. I didnt even think about the Dynamic Admin account having different settings. Made the regedit as you suggested and it worked flawlessly.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.