Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Visual Studio 2017 License Key?

Tags:

I want to remove my license key in visual studio 2017. how can i do it? I am trying to change the product key but I cant.

like image 770
kazi fahad Lateef Avatar asked Oct 13 '17 13:10

kazi fahad Lateef


People also ask

How do I find my Visual Studio Pro 2017 product key?

Sign in to your Visual Studio subscription. You must be signed in to download products or claim product keys. Select the Product Keys tab. Product keys are listed alphabetically by the name of the product.

Does Visual Studio 2017 require a license?

No, Community edition is free to use for many scenarios. Learn more about Visual Studio Community.. In case your Community edition installation prompts you for a license, you might have to sign in to unlock the IDE. Follow these instructions to sign into Visual Studio.

How do I remove a Visual Studio license?

You can use vs_setup /uninstall /force from the installation media (or the web installer) to completely remove the installed version without having to format the computer.

How do I activate my Visual Studio license key?

Enter your password, or complete your organization's sign-in requirements. Upon successful sign-in, an "Activate Your Visual Studio Subscription" window will appear. Enter the product key information available from the payment "Confirmation Page" or "Confirmation Email" and select Activate.


1 Answers

Well I found two possible solutions for Visual Studio 2013, 2015, 2017, 2019 and 2022.

1. Setting new product key with StorePID.exe (MS Docs).

  1. navigate to VS 2017/2019 installation directory (C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE)
  2. start cmd as admin
  3. execute StorePID.exe <your_new_product_key> <MPC>
  4. maybe a restart

Possible Microsoft Product Codes (MPC) are:

  • 06177 Visual Studio Professional 2013
  • 06191 Visual Studio Premium 2013
  • 06181 Visual Studio Ultimate 2013
  • 07062 Visual Studio Professional 2015
  • 07060 Visual Studio Enterprise 2015
  • 08860 Visual Studio Enterprise 2017
  • 08862 Visual Studio Professional 2017
  • 08866 Visual Studio Test Professional 2017
  • 09260 Visual Studio Enterprise 2019
  • 09262 Visual Studio Professional 2019
  • 09660 Visual Studio Enterprise 2022
  • 09662 Visual Studio Professional 2022

2. Removing product key first and set new one. (VS 2015/2017/2019)

  1. open register editor
  2. navigate to
  • VS 2015: HKEY_CLASSES_ROOT\Licenses\4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F and delete it
  • VS 2017: HKEY_CLASSES_ROOT\Licenses\5C505A59-E312-4B89-9508-E162F8150517 and delete it
  • VS 2019: HKEY_CLASSES_ROOT\Licenses\41717607-F34E-432C-A138-A3CFD7E25CDA and delete it
  1. exeute a repair installation of VS 2017/2019
  2. enter your new product key under Help > Register Product

It's not the best way to solve it, but faster than deinstall and install the complete IDE.


Update (2020-01-09)

  • added MPCs for Visual Studio 2013, 2015 and 2019;
  • extended registry solution for VS 2019;

Update (2021-12-03)

  • added MPCs for Visual Studio 2022;
like image 88
ChW Avatar answered Sep 18 '22 17:09

ChW