Albert Widjaja
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:
Can anyone here please assist me in how to modify the script above so that it can works ?
Thanks.
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
Can anyone here please assist me in how to modify the script above so that it can works ?
Thanks.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Bembi,
So in my case here is it failing because the script is not supported for Standard version ?
So in my case here is it failing because the script is not supported for Standard version ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Unfortunately I don't have SCCM in my environment.
So I guess I'll have to rely on startup script or scheduled task.
So I guess I'll have to rely on startup script or scheduled task.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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 ?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
By the way Bembi,
the script htat you mention above is not working:
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:\>
Hi,
yes, sure, because there is no path variable which point to
"%ProgramFilesPath%\Micros oft 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\cscrip t.exe "%ProgramFilesPath%\Micros oft Office\Office14\ospp.vbs" /dstatus
C:\Windows\system32\cscrip t.exe "%ProgramFilesPath%\Micros oft Office\Office14\ospp.vbs" /dstatusall
yes, sure, because there is no path variable which point to
"%ProgramFilesPath%\Micros
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\cscrip
C:\Windows\system32\cscrip
ASKER
Ah I see,
it is still error as below:
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:\>
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\cscrip t.exe C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" /dstatus
C:\Windows\system32\cscrip t.exe C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" /dstatusall
On my system it is ...
C:\Program Files (x86)\Microsoft Office\Office14
in this case use...
C:\Windows\system32\cscrip
C:\Windows\system32\cscrip
Sorry, which correct parenthesis.,...
C:\Windows\system32\cscrip t.exe "C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" /dstatus
C:\Windows\system32\cscrip t.exe "C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" /dstatusall
C:\Windows\system32\cscrip
C:\Windows\system32\cscrip
ASKER
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.
It only works for MS Visio but not MS Project.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER