Downgrade MS Project using batch script ?

People,

I need to perform mass downgrade of Microsoft Project 2010 and 2013 any version into Standard Edition, so I've found this article:
http://blogs.technet.com/b/odsupport/archive/2010/12/03/volume-license-editions-of-visio-2010-install-premium-edition-by-default.aspx

The script below works for Visio 2010/13 but somehow it doesn't work for MS Project:

if "%PROCESSOR_ARCHITECTURE%"=="x86" if "%PROCESSOR_ARCHITEW6432%"=="" goto x86 
set ProgramFilesPath=%ProgramFiles(x86)% 
goto OSPP

:x86 
set ProgramFilesPath=%ProgramFiles%

:OSPP 
reg query HKLM\Software\Microsoft\Office\14.0\Common\OSPPRUNONCE 
if %errorlevel%==1 (goto RUN) else (goto END)

:RUN 
C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office14\ospp.vbs" /inpkey:4HP3K-88W3F-W2K3D-6677X-F9PGB 
C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office14\ospp.vbs" /act 
REG ADD "HKLM\Software\Microsoft\Office\14.0\Common\OSPPRUNONCE"

:END 
Exit

pause

Open in new window


Can anyone here please assist me in how to modify the script above so that it can works ?

Thanks.
LVL 9
Senior IT System EngineerIT ProfessionalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Senior IT System EngineerIT ProfessionalAuthor Commented:
I've tried to execute that batch script above using PsExec but somehow it is failed as well.
0
BembiCEOCommented:
Maybe you can check your current license status with...
cscript ospp.vbs /dstatus
cscript ospp.vbs /dstatusall

You should see MS Project there as well...
You have to run this from an elevated command promt..

If I do this on my machine, I see Visio Pro and Visio Premium
but only MS Project Pro and not Std....

So changing the key for Visio may work as the version depends on the key....
For MS Project Std. it may fail because it is not recognized as installed product.
1
Senior IT System EngineerIT ProfessionalAuthor Commented:
Thanks Bembi,

So in my case here is it failing because the script is not supported for Standard version ?
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

compdigit44Commented:
I think the only was to do this with Project is with a uninstall and reinstall as stated in the following EE post

http://www.experts-exchange.com/Software/Office_Productivity/Project_Management/Q_27055042.html

Do you use any type of enterprise software management solution like Microsoft SCCM?
1
Senior IT System EngineerIT ProfessionalAuthor Commented:
Unfortunately I don't have SCCM in my environment.

So I guess I'll have to rely on startup script or scheduled task.
0
compdigit44Commented:
If you have no other MS or third party software deployment solutions in place then either manual uninstall or scripts are your only choices...
0
BembiCEOCommented:
Hello,

the point is, that Visio changes its version just by the key while MS Project has a separate Setup for Standard and Professional version. And indead, you will have to deinstall the Pro version ins install the Std. version (or vice versa)....

Beside professional software distribution, all office programs can be installed / uninstalled with a silent setup via command line. Either calling the setup with some additional parameters or using a transform (an additional file with configuration settings) may simplify the job. The trigger for this you can either distribute via AD Policies (works with msi files) or you can just place a the call in the run once part of the registry (also via polices).
The distribution via group policies (software key) is similar to the way SMS server used in the past (the predecessor of system center). Nowadays not so often used anymore, but still available.
1
Senior IT System EngineerIT ProfessionalAuthor Commented:
Bembi,

Thanks for the clarification. So for the MS Project one, can I just change the KMS key so that eveything become standard edition after the grace period ended ?
0
BembiCEOCommented:
As I said, it seems to work for Visio, but not for MS Project as I know.
I never have seen it somewhere until now, that the version was changed just by changing the key.
We always uninstalled MS Project and reinstalled to change the version.
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Senior IT System EngineerIT ProfessionalAuthor Commented:
By the way Bembi,

the script htat you mention above is not working:

PS C:\> cscript ospp.vbs /dstatus
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: Can not find script file "C:\ospp.vbs".


PS C:\> cscript ospp.vbs /dstatusall
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: Can not find script file "C:\ospp.vbs".
PS C:\>

Open in new window

0
BembiCEOCommented:
Hi,

yes, sure, because there is no path variable which point to
"%ProgramFilesPath%\Microsoft Office\Office14

You have either to change the path in the command promt to the path above, or you have to call the file including the full path...so...

C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office14\ospp.vbs" /dstatus
C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office14\ospp.vbs" /dstatusall
1
Senior IT System EngineerIT ProfessionalAuthor Commented:
Ah I see,

it is still error as below:

PS C:\> C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office14\ospp.vbs" /dstatus
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: Can not find script file "C:\%ProgramFilesPath%\Microsoft Office\Office14\ospp.vbs".

PS C:\> C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office14\ospp.vbs" /dstatusall
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: Can not find script file "C:\%ProgramFilesPath%\Microsoft Office\Office14\ospp.vbs".
PS C:\>

Open in new window

0
BembiCEOCommented:
Just search where the ospp.vbs is located on your computer and use the full path instead of the placeholder....
On my system it is ...
C:\Program Files (x86)\Microsoft Office\Office14

in this case use...
C:\Windows\system32\cscript.exe C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" /dstatus
C:\Windows\system32\cscript.exe C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" /dstatusall
0
BembiCEOCommented:
Sorry, which correct parenthesis.,...

C:\Windows\system32\cscript.exe "C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" /dstatus
C:\Windows\system32\cscript.exe "C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" /dstatusall
0
Senior IT System EngineerIT ProfessionalAuthor Commented:
ok, it seems that there is no other way to uninstall it using a script.
It only works for MS Visio but not MS Project.
0
BembiCEOCommented:
This is what I said ;-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.