Share via

Product key activation issue

Jason Crawford 20 Reputation points
2025-10-13T15:10:25.4966667+00:00

I am trying to register my Visual Studio 2022 Professional installation with a CSP product key I purchased from a reseller. It was supposed to work with my login that's associated with the onmicrosoft.com portal, but when I press Apply on the product key entry window (and allow the UAC prompt that follows), it just says "A failure occurred while applying the product key." - the same thing happens if I start Visual Studio 2022 Professional with Administrator elevation.

What do I do to get this registered?

Developer technologies | Visual Studio | Setup
0 comments No comments

Answer accepted by question author

Susmitha T (INFOSYS LIMITED) 2,695 Reputation points Microsoft External Staff
2025-10-14T08:15:56.78+00:00

Thanks for reaching out!

 Here are a few steps you can take to troubleshoot this problem:

 1. Check Product Key Format: Make sure your CSP product key is entered correctly, including any dashes. It should follow the format XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.

 
2. Run Visual Studio as Administrator: Although you mentioned you've done this, it's worth retrying. Right-click on the Visual Studio icon and select "Run as Administrator" before attempting to apply the product key again.

 

3. Utilize StorePID.exe: You can manually apply the product key using the StorePID.exe utility. This utility is located by default at:        
  " C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE "        
 
Open a command prompt as an administrator and run the following command:     
     "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\StorePID.exe" [Your Product Key Including Dashes] 09662"

 

Replace [Your Product Key Including Dashes] with your actual product key. Check the MPC (Microsoft Product Code) to ensure its 09662 for Professional.

 

4. Check License Availability: Ensure that the license associated with your account has not been exhausted. Sometimes, if you're using multiple licenses or have reached the activation limit, further activations may be blocked.

 

5. Visual Studio Support Resources: Take a look at the official troubleshooting guide for installation issues (https://learn.microsoft.com/en-us/visualstudio/install/troubleshooting-installation-issues).."https://learn.microsoft.com/en-us/visualstudio/install/troubleshooting-installation-issues).")

 

6. Contact Your Subscription Admin: Given your account is associated with the onmicrosoft.com portal, check if your subscription admin can provide permissions or check the status of your licenses.

 

 Let me know if you need any further help with this. We'll be happy to assist.

If you find this helpful, please mark the response as "answered".

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.