IT TIP

Visual Studio 2012,2013 또는 2015 라이선스 키를 변경하는 방법은 무엇입니까?

itqueen 2020. 12. 2. 22:20
반응형

Visual Studio 2012,2013 또는 2015 라이선스 키를 변경하는 방법은 무엇입니까?


다른 하나를 사용해야하기 때문에 더 이상 사용할 수 없다고 생각되는 직렬 키가있는 컴퓨터에 Visual Studio 2012 Pro 사본이 있습니다. 내 문제는 Visual Studio를 계속 제거하지만 다시 설치 한 후에도 등록 정보가 여전히 남아 있으며 운이 좋지 않고 삭제해야 할 레지스트리 경로를 파악할 수 없습니다 (몇 개 삭제했습니다).

등록 정보를 제거하거나 내 키를 교환하는 쉬운 방법이 있습니까?

감사


나는 같은 문제가 있었고 제품 키를 다른 것으로 변경하고 싶었습니다. 불행히도 VS2010만큼 쉽지는 않습니다.

다음 단계가 작동합니다.

  • 라이선스 정보가 포함 된 레지스트리 키를 제거합니다. HKEY_CLASSES_ROOT \ Licenses \ 77550D6B-6352-4E77-9DA3-537419DF564B

  • 키를 찾을 수없는 경우 sysinternals ProcessMonitor사용하여 VS2012 의 레지스트리 액세스를 확인하여 항상 HKEY_CLASSES_ROOT \ Licenses에있는 올바른 키를 찾습니다.

  • 이 키를 제거하면 VS2012에서 라이선스 정보가 올바르지 않다고 알려줍니다. "프로그램 및 기능"으로 이동하여 VS2012를 복구하십시오.

  • 수리 후 VS2012는 30 일 평가판으로 되돌아 가고 새 제품 키를 입력 할 수 있습니다. 이것은 또한 평가판 루프에 머무르고 생산 키를 입력하지 않는 데 사용될 수도 있습니다.


Visual Studio 2015에서 제품 키를 제거해야하는 경우 :

  1. 레지스트리 키 제거 HKCR\Licenses\4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F
  2. Visual Studio 설치 복구

이제 필요한 경우 제품 키를 변경할 수 있습니다.


나에게 Visual Studio 2013에서는 라이선스 키를 제거하고 수리를 수행하는 것만으로는 충분하지 않았습니다 (복구는 평가판으로 되 돌리는 대신 라이선스 키를 복원하고 수리하지 않고 실행 (키 삭제 후)). 라이센스가 만료되었지만 새 키를 입력 할 수 없습니다).

나는 :

  • Process Monitor를 사용하여 Visual Studio가 레지스트리에서 찾고 있던 라이선스 키 ( HKCR\Licenses\E79B3F9C-6543-4897-BBA5-5BFB0A02BB5C)를 확인합니다.
  • Visual Studio 2013을 완전히 제거합니다 (먼저 CurrentSettings.vssettings 저장).
  • regedit에서 직접 레지스트리에서 라이센스 키를 삭제하십시오.
  • 공개적으로 사용 가능한 웹 설치 관리자를 사용하여 Visual Studio를 설치합니다 (베이크 인 라이선스 키가 없으며 30 일 평가판을 설치 함).
  • 내 새 라이센스 키를 입력하십시오.
  • (재) 업데이트 설치 (현재 업데이트 1)
  • CurrentSettings.vssettings로 만든 백업을 가져 와서 설정 복원

이러한 HKCR \ Licenses의 내용을 보려면 API Monitor v2를 사용 하십시오.

API-Filter find 

    RegQueryValueExW 
        ^-Enable all from Advapi32.dll

    CryptUnprotectData
        ^- Enable all from Crypt32.dll
         + Breakpoint / after Call

CryptUnprotectData 에서 나올 샘플 데이터 :

HKEY_CLASSES_ROOT\Licenses\4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F\07078  [length 0x1C6 (0454.) ]
    00322-20000-00000-AA450                 <- PID2
    7d3cbcbb-90b1-411f-9981-6e28039a9b82    <- Ver
    7C3WXN74-VRMXH-J8X3H-M8F7W-CPQB8        <- PID3

HKEY_CLASSES_ROOT\Licenses\4D8CFBCB-2F6A-4AD2-BABF-10E28F6F2C8F\0bcad  [length 0xbcad (0534.) ]

    0000  00000025 ffffffff 7fffffff   07064. 00000007   07078. 00000007 ffffffff
    0020  7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff
    0040  7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff
    0060  7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff
    0080  7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff
    00a0  7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff
    00c0  7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff
    00e0  7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff
    0100  7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff 7fffffff ffffffff
    0120  7fffffff ffffffff 7fffffff 10.2015. c2a6 11.
    0134                             ^installation date^

여기에 설치 타임 스탬프가 유용 할 수 있습니다 (여기서는 2015 년 11 월 10 일) 'CryptProtectData'를 호출하는 데 필요한 변경 사항입니다. 그렇게하려면 작은 프로그램을 작성하거나이 장소에서 ollydebug를 중지하고 CryptProtectData 호출을 수동으로 '제작'하는 등의 노력이 필요합니다.

참고 :이 예에서는 Microsoft® Visual Studio 2015를 사용하고 있습니다.

-> 만료 된 VS에 빠르게 몰래 들어가 려면 게시물 을 읽는 것이 좋습니다 . 그러나 그것은 모든 가입과 로그인 쓰레기가 다시 제대로 완료 될 때까지 가끔 사용하기에 좋습니다.)

좋아요 진짜 고기는 여기 있습니다 :
% LOCALAPPDATA % \ Microsoft \ VisualStudio \ 14.0 \ Licenses \ ^-이 경로는 HKCU \ Software \ Microsoft \ VisualStudio \ 14.0 \ Licenses \ 715f10eb-9e99-11d2-bfc2-00c04f990235 \ 1에서 가져옵니다.

1_3jdh3uyw **. crtok **

-일부 Base64 디코딩 후 :

<ClientRightsContainer 
    xmlns="http://schemas.datacontract.org/2004/07/Microsoft.VisualStudio.Services.Licensing" 
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <CertificateBytes>
        00000000   30 82 06 41 30 82 04 29  A0 03 02 01 02 02 13 5A   0‚ A0‚ )       Z
        00000010   00 00 BC CB 23 AC 52 9C  E8 93 F9 0A 00 01 00 00     ¼Ë#¬Rœè“ù     
        00000020   BC CB 30 0D 06 09 2A 86  48 86 F7 0D 01 01 0B 05   ¼Ë0   *†H†÷     
        00000030   00 30 81 8B 31 0B 30 09  06 03 55 04 06 13 02 55    0 ‹1 0   U    U
        00000040   53 31 13 30 11 06 03 55  04 08 13 0A 57 61 73 68   S1 0   U    Wash
        00000050   69 6E 67 74 6F 6E 31 10  30 0E 06 03 55 04 07 13   ington1 0   U   
        00000060   07 52 65 64 6D 6F 6E 64  31 1E 30 1C 06 03 55 04    Redmond1 0   U 
        00000070   0A 13 15 4D 69 63 72 6F  73 6F 66 74 20 43 6F 72      Microsoft Cor
        00000080   70 6F 72 61 74 69 6F 6E  31 15 30 13 06 03 55 04   poration1 0   U 
        00000090   0B 13 0C 4D 69 63 72 6F  73 6F 66 74 20 49 54 31      Microsoft IT1
        000000A0   1E 30 1C 06 03 55 04 03  13 15 4D 69 63 72 6F 73    0   U    Micros
        000000B0   6F 66 74 20 49 54 20 53  53 4C 20 53 48 41 32 30   oft IT SSL SHA20
        000000C0   1E 17 0D 31 35 30 33 30  35 32 31 32 39 35 36 5A      150305212956Z
        000000D0   17 0D 31 37 30 33 30 34  32 31 32 39 35 36 5A 30     170304212956Z0
        000000E0   25 31 23 30 21 06 03 55  04 03 13 1A 61 70 70 2E   %1#0!  U    app.
        000000F0   76 73 73 70 73 2E 76 69  73 75 61 6C 73 74 75 64   vssps.visualstud
        00000100   69 6F 2E 63 6F 6D 30 82  01 22 30 0D 06 09 2A 86   io.com0‚ "0   *†
        ...
        000002B0   6E 86 36 68 74 74 70 3A  2F 2F 6D 73 63 72 6C 2E   n†6http://mscrl.
        000002C0   6D 69 63 72 6F 73 6F 66  74 2E 63 6F 6D 2F 70 6B   microsoft.com/pk
        000002D0   69 2F 6D 73 63 6F 72 70  2F 63 72 6C 2F 6D 73 69   i/mscorp/crl/msi
        000002E0   74 77 77 77 32 2E 63 72  6C 86 34 68 74 74 70 3A   twww2.crl†4http:
        000002F0   2F 2F 63 72 6C 2E 6D 69  63 72 6F 73 6F 66 74 2E   //crl.microsoft.
        00000300   63 6F 6D 2F 70 6B 69 2F  6D 73 63 6F 72 70 2F 63   com/pki/mscorp/c
        00000310   72 6C 2F 6D 73 69 74 77  77 77 32 2E 63 72 6C 30   rl/msitwww2.crl0
        00000320   70 06 08 2B 06 01 05 05  07 01 01 04 64 30 62 30   p  +        d0b0
        00000330   3C 06 08 2B 06 01 05 05  07 30 02 86 30 68 74 74   <  +     0 †0htt
        00000340   70 3A 2F 2F 77 77 77 2E  6D 69 63 72 6F 73 6F 66   p://www.microsof
        00000350   74 2E 63 6F 6D 2F 70 6B  69 2F 6D 73 63 6F 72 70   t.com/pki/mscorp
        00000360   2F 6D 73 69 74 77 77 77  32 2E 63 72 74 30 22 06   /msitwww2.crt0" 
        00000370   08 2B 06 01 05 05 07 30  01 86 16 68 74 74 70 3A    +     0 † http:
        00000380   2F 2F 6F 63 73 70 2E 6D  73 6F 63 73 70 2E 63 6F   //ocsp.msocsp.co
        00000390   6D 30 4E 06 03 55 1D 20  04 47 30 45 30 43 06 09   m0N  U   G0E0C  
        000003A0   2B 06 01 04 01 82 37 2A  01 30 36 30 34 06 08 2B   +    ‚7* 0604  +
        000003B0   06 01 05 05 07 02 01 16  28 68 74 74 70 3A 2F 2F           (http://
        000003C0   77 77 77 2E 6D 69 63 72  6F 73 6F 66 74 2E 63 6F   www.microsoft.co
        000003D0   6D 2F 70 6B 69 2F 6D 73  63 6F 72 70 2F 63 70 73   m/pki/mscorp/cps
        000003E0   00 30 27 06 09 2B 06 01  04 01 82 37 15 0A 04 1A    0'  +    ‚7    
        000003F0   30 18 30 0A 06 08 2B 06  01 05 05 07 03 01 30 0A   0 0   +       0 
        00000400   06 08 2B 06 01 05 05 07  03 02 30 25 06 03 55 1D     +       0%  U 
        00000410   11 04 1E 30 1C 82 1A 61  70 70 2E 76 73 73 70 73      0 ‚ app.vssps
        00000420   2E 76 69 73 75 61 6C 73  74 75 64 69 6F 2E 63 6F   .visualstudio.co
        00000430   6D 30 0D 06 09 2A 86 48  86 F7 0D 01 01 0B 05 00   m0   *†H†÷      
        ...                                                U
    </CertificateBytes>
    <Token>
    {
        "typ":"JWT",
        "alg":"RS256",
        "x5t":"i7qX-NUrehXBYdQC5PSH-TdvzXA"
    }
    </Token>
</ClientRightsContainer>

M $는 라이선스 데이터를 래핑하기 위해 JWT (JSON Web Token )를 사용하고있는 것 같습니다 . 나는 CertificateBytes 내부 가 어떻게 든 페이로드가 될 것이라고 생각 합니다-당신은 이메일 및 기타 세부 사항입니다.

지금까지 대략적인 개요를 위해 내부 데이터가 무엇인지.

For more wishes get ILSpy + Reflexil (<- to changes/correct little things!) and then 'browser&correct' files like c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE**Microsoft.VisualStudio.Licensing.dll** or check out 'Microsoft.VisualStudio.Services.WebApi.dll'


For those of you using Visual Studio 2017 Professional, the registry key is:

HKCR\Licenses\5C505A59-E312-4B89-9508-E162F8150517

I also recommend you first export the registry key, before you delete it, so you'll have a backup if you accidentally delete the wrong key.


See my UPDATE at the end, before reading the following answer.

I have windows 8 and another pc with windows 8.1

I had License error saying "Prerelease software. License expired".

The only solution that I found which is inspired by the above solutions (Thanks!) was to run process monitor and see the exact registry keys that are accessed when I start the VS2013 which were:

HKCR\Licenses\E79B3F9C-6543-4897-BBA5-5BFB0A02BB5C

like what are mentioned in the previous posts. However the process monitor said that this registry is access denied.

So I opened regedit and found that registry key and I could not open it. It says I have no permission to see it.

SO I had to change its permission:

  1. Right click on the "HKCR\Licenses\E79B3F9C-6543-4897-BBA5-5BFB0A02BB5C" key
  2. Permissions
  3. Add
  4. In "Enter object names to select" I have added my windows user name. Ok.
  5. check on Full control
  6. Advanced
  7. Owner click on "Change"
  8. In "Enter object names to select" I have added my windows user name. Ok.
  9. Ok. Ok. Ok.

I found that this registry key has several sub keys, however you have to restart regedit to see them.

By seeing which other registry keys are access denied in process monitor , I knew that VS2013 will specifically deal with these subkeys which are ACCESS DENIED also: 06181 0bcad

and these subkeys should be changed their permissions as well like above.

After making these permission changes everything worked well.

The same thing has been done to Microsoft visual studio 2010 because an error in the license as well and the solution worked well.

UPDATE : It turned out that starting visual studio as administrator solved this issue without this registry massage. Seems that this happened to my pc after changing the 'required password to login' removed in the user settings. (I wanted to let the pc start running without any password after restart from a crash or anything else). This made a lot of programs not able to write into some folders like temp folders unless I start the application as admin. Even printing from excel would not work, if excel is not started as admin.


The ISO is probably pre-pidded. You'll need to delete the key from the setup files. It should then ask you for a key during installation.


The solution with removing the license information from the registry also works with Visual Studio 2013, but as described in the answer above, it is important to execute a "repair" on Visual Studio.

참고URL : https://stackoverflow.com/questions/12465361/how-to-change-visual-studio-2012-2013-or-2015-license-key

반응형