14

I have Visual Studio 2015 Pro with retail key. I have built new PC and moved there. I was hoping VS has attached the key to my Microsoft account but it hasn't.

I cannot find the key.

I still have the old PC running. Is there any way I can recover the key from the registered Visual Studio or from my Microsoft account?

both PCs run Windows 10 and being used under same Microsoft account, if it helps

Boppity Bop
  • 2,663

1 Answers1

21

You should be able to find the activation key under the registry path HKEY_CLASSES_ROOT\Licenses\4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F\07062 . The value is encrypted though, so you need to decrypt it with the CryptUnprotectData method in the Win32 API.

I have created a small tool that simplifies this and should allow extracting product keys for Visual Studio 2015, 2017 and 2019 (only tested for 2019 professional so far):

https://github.com/terjew/VSKeyExtractor

wiesener
  • 326