Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PSTOOLS Office Activation Not Working

Posted on 2016-10-28
11
Medium Priority
?
248 Views
Last Modified: 2016-10-28
I have a PSEXEC command that I am runningto activate Microsoft Office 2013 which has a MAK license. It appears to run fine but the Office suite for the end users is not activating.

Is there something wrong with my syntax?

psexec @c:\list.txt -d -n 5 -u domain\user -p password cmd /c "c:\program files (x86)\microsoft office\office15\cscript ospp.vbs /act"

Open in new window

0
Comment
Question by:Paul Wagner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 25

Expert Comment

by:NVIT
ID: 41864378
> It appears to run fine.

How can you confirm? A log created?

If you run it manually on a client, does it work?
0
 
LVL 5

Author Comment

by:Paul Wagner
ID: 41864396
Here is what I get from manual run on a single computer

error
Even though the cmd starts in the I:\ path, it doesn't seem to find the C:\ path.

I think I know what it is. The end user doesn't have access to the C drive, so the command can't locate anything in C:\.
That is why the command won't work properly when run from PSESXEC?
Is there a way to get the batch file to run cmd as admin?
0
 
LVL 25

Expert Comment

by:NVIT
ID: 41864433
Your image differs from your first post code, i.e. "c:\program files (x86)\microsoft office\office15\cscript ospp.vbs /act"

Per your first post, cscript is assumed to reside in "c:\program files (x86)\microsoft office\office15"

cscript.exe normally resides in C:\Windows\System32 and does not need to be placed in another folder. Try:

psexec @c:\list.txt -d -n 5 -u domain\adminuser -p password cmd /c "cscript ospp.vbs /act"

Open in new window

0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 5

Author Comment

by:Paul Wagner
ID: 41864449
If I run it from system32 folder, cscript won't know how to find the ospp.vbs.
0
 
LVL 5

Author Comment

by:Paul Wagner
ID: 41864456
What do you think about this?
http://serverfault.com/questions/148938/office-2010-silent-activation-after-unattended-installation

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

Expert Comment

by:NVIT
ID: 41864463
Fixed:
c:\windows\system32\cscript "c:\program files (x86)\microsoft office\office15\OSPP.VBS" /act

Open in new window

0
 
LVL 5

Author Comment

by:Paul Wagner
ID: 41864479
OK, so I've got this:

psexec @c:\list2.txt -d -n 5 -u domain\username -p password cmd /c c:\windows\system32\cscript "c:\program files (x86)\microsoft office\office15\OSPP.VBS" /inpkey:12345-12345-12345-12345-12345

Open in new window


and

psexec @c:\list2.txt -d -n 5 -u domain\usernme -p password cmd /c c:\windows\system32\cscript "c:\program files (x86)\microsoft office\office15\OSPP.VBS" /act

Open in new window


Running it now on a select few machines.
0
 
LVL 5

Author Comment

by:Paul Wagner
ID: 41864492
Didnt work. This is what I got:

error2
So it looks like while the cscript is loading, part of the c:\ runs and then finishes program files, etc. afterwards.

What about adding a timeout?
psexec @c:\list2.txt -d -n 5 -u domain\username -p password cmd /c c:\windows\system32\cscript 
<enter a TIMEOUT /T1 here?>
"c:\program files (x86)\microsoft office\office15\OSPP.VBS" /act

Open in new window

0
 
LVL 25

Accepted Solution

by:
NVIT earned 2000 total points
ID: 41864504
Try w/o the -d and -n 5 switches for now:

psexec @c:\list2.txt -u domain\username -p password cmd /c c:\windows\system32\cscript "c:\program files (x86)\microsoft office\office15\OSPP.VBS" /inpkey:12345-12345-12345-12345-12345

Open in new window

0
 
LVL 5

Author Closing Comment

by:Paul Wagner
ID: 41864508
That did it! Thanks a bunch for your help! You seriously got me out of a pickle!!
0
 
LVL 25

Expert Comment

by:NVIT
ID: 41864515
I was glad to help, Paul. I know how that feels. 8-)
Thanks for quick responses.

Have a good one.
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question