Downgrading Visio 2013 Professional to Standard using Batch script ?

People,

I need your help in revising or modifying the script below so that it can downgrade Visio 2013 Professional into Standard Edition ?

REM @echo off

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

:x86 
set ProgramFilesPath=%ProgramFiles%

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

:RUN 
C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office15\ospp.vbs" /inpkey:J484Y-4NKBF-W2HMG-DBMJC-PGWR7 
C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office15\ospp.vbs" /act 

REM Rename the Visio Professional display name into Standard edition in the Add/Remove Program lists.
REG ADD "HKLM\Software\Microsoft\Office\15.0\Common\OSPPRUNONCE"
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Office15.VISPRO" /v DisplayName /d "Microsoft Visio Standard 2013"
REG ADD "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Office15.VISPRO" /v DisplayName /d "Microsoft Visio Standard 2013"

:END 
Exit

pause

Open in new window


The typical scenario is that Visio 2013 Professional is installed in Windows 7/8.1 64 bit OS but the Visio application is just 32 bit.

Here's the Error message when executing the script above:

Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

---Processing--------------------------
---------------------------------------
ERROR CODE: 0xC004F069
ERROR DESCRIPTION: The Software Licensing Service reported that the product SKU is not found.
---------------------------------------
---Exiting-----------------------------

Open in new window


Any help would be greatly appreciated.

Thanks,

Note:

Here's the link for the serial number: https://technet.microsoft.com/en-us/library/dn385360.aspx
Source of the script: http://blogs.technet.com/b/odsupport/archive/2010/12/03/volume-license-editions-of-visio-2010-install-premium-edition-by-default.aspx
LVL 12
Senior IT System EngineerSenior Systems EngineerAsked:
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.

NVITEnd-user supportCommented:
Can't verify this now but... Does escaping the parens on line 4 help?

set ProgramFilesPath=%ProgramFiles\(x86\)%
Senior IT System EngineerSenior Systems EngineerAuthor Commented:
Hi @NVIT, here's the output of the diagnostic command:

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

---Processing--------------------------
---------------------------------------
SKU ID: 2b88c4f2-ea8f-43cd-805e-4d41346e18a7
LICENSE NAME: Office 15, OfficeProPlusVL_MAK edition
LICENSE DESCRIPTION: Office 15, RETAIL(MAK) channel
LICENSE STATUS:  ---UNLICENSED---
ERROR CODE: 0xC004F014
ERROR DESCRIPTION: The Software Licensing Service reported that the product key is not available.
---------------------------------------
SKU ID: 3e4294dd-a765-49bc-8dbd-cf8b62a4bd3d
LICENSE NAME: Office 15, OfficeVisioProVL_MAK edition
LICENSE DESCRIPTION: Office 15, RETAIL(MAK) channel
LICENSE STATUS:  ---UNLICENSED---
ERROR CODE: 0xC004F014
ERROR DESCRIPTION: The Software Licensing Service reported that the product key is not available.
---------------------------------------
SKU ID: b322da9c-a2e2-4058-9e4e-f59a6970bd69
LICENSE NAME: Office 15, OfficeProPlusVL_KMS_Client edition
LICENSE DESCRIPTION: Office 15, VOLUME_KMSCLIENT channel
LICENSE STATUS:  ---LICENSED---
REMAINING GRACE: 176 days  (254472 minute(s) before expiring)
Last 5 characters of installed product key: GVGXT
        KMS machine name from DNS: PRODKMS01-VM-VM.DOMAIN.com:1688
        Activation Interval: 120 minutes
        Renewal Interval: 10080 minutes
        KMS host caching: Enabled
---------------------------------------
SKU ID: e13ac10e-75d0-4aff-a0cd-764982cf541c
LICENSE NAME: Office 15, OfficeVisioProVL_KMS_Client edition
LICENSE DESCRIPTION: Office 15, VOLUME_KMSCLIENT channel
LICENSE STATUS:  ---LICENSED---
REMAINING GRACE: 176 days  (254472 minute(s) before expiring)
Last 5 characters of installed product key: RM3B3
        KMS machine name from DNS: PRODKMS01-VM-VM.DOMAIN.com:1688
        Activation Interval: 120 minutes
        Renewal Interval: 10080 minutes
        KMS host caching: Enabled
---------------------------------------
---------------------------------------
---Exiting-----------------------------

Open in new window

David Johnson, CD, MVPRetiredCommented:
You have standard and professional licenses? On the machine under test it has an activated professional license.
does this work from an elevated command prompt?
cscript "C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS" /inpkey:J484Y-4NKBF-W2HMG-DBMJC-PGWR7

Open in new window

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 EngineerSenior Systems EngineerAuthor Commented:
Thanks for the help !
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
Microsoft Visio

From novice to tech pro — start learning today.