Link to home
Start Free TrialLog in
Avatar of Albert Widjaja
Albert WidjajaFlag for Australia

asked on

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.
Avatar of Albert Widjaja
Albert Widjaja
Flag of Australia image

ASKER

I've tried to execute that batch script above using PsExec but somehow it is failed as well.
SOLUTION
Avatar of Bembi
Bembi
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Bembi,

So in my case here is it failing because the script is not supported for Standard version ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Unfortunately I don't have SCCM in my environment.

So I guess I'll have to rely on startup script or scheduled task.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 ?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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

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
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

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
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
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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial