How to change Visual Studio 2017 License Key?

…衆ロ難τιáo~ 提交于 2019-11-27 11:43:12

问题


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.


回答1:


Well I found two possible solutions.

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

  1. navigate to VS 2017 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:

  • 08860 Visual Studio Enterprise 2017
  • 08862 Visual Studio Professional 2017
  • 08866 Visual Studio Test Professional 2017

2. Removing product key first and set new one.

  1. open register editor
  2. navigate to HKEY_CLASSES_ROOT\Licenses\5C505A59-E312-4B89-9508-E162F8150517 and delete it
  3. exeute a repair installation of VS 2017
  4. 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.




回答2:


For VS 2015, a key is

HKEY_CLASSES_ROOT\Licenses\4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F

for what it's worth...




回答3:


For VS 2019 the registry key is: HKEY_CLASSES_ROOT\Licenses\41717607-F34E-432C-A138-A3CFD7E25CDA




回答4:


MPCs for VS 2019.

Visual Studio Enterprise 2019 09260

Visual Studio Professional 2019 09262

https://docs.microsoft.com/en-us/visualstudio/install/automatically-apply-product-keys-when-deploying-visual-studio?view=vs-2019



来源:https://stackoverflow.com/questions/46731291/how-to-change-visual-studio-2017-license-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!