Visual Studio 2026 : Unable to activate licence using StorePID.exe

Quadra 45 Reputation points
2025-11-17T19:58:05.78+00:00

Hello,

I'm facing an issue when I want to activate the licence for Visual Studio 2026 that I installed offline (https://learn.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=visualstudio) using below command :


"C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\StorePID.exe" AAAAA-BBBBB-CCCCC-DDDDD-EEEEE 09662***

But I'm getting the error code 2 (PID_ACTION_INVALID), and If I activate manually from Visual Studio IDE portal the same licence key is working fine.

It seems that the MPC 09662 is not recognized for Visual Studio 2026 while Microsoft confirms (https://learn.microsoft.com/en-us/visualstudio/install/automatically-apply-product-keys-when-deploying-visual-studio?view=visualstudio&viewFallbackFrom=vs-2026).

Can someone confirms me the right MPC to use ?

Regards,

Developer technologies | Visual Studio | Setup
{count} votes

Answer accepted by question author
  1. 33884648 75 Reputation points
    2025-11-24T11:16:09.28+00:00

    Dears, Although the MPC for Visual Studio Professional 2026 has not been made available it is relatively easy to get it by capturing the licensing process. For those who are interested MPC for VS Pro 2026 is 09862.

    0 comments No comments

Answer accepted by question author
  1. Varsha Dundigalla(INFOSYS LIMITED) 3,810 Reputation points Microsoft External Staff
    2025-11-18T10:17:25.93+00:00

    Thank you for reaching out.
    The MPC for Visual Studio 2026 has not been published by Microsoft yet. The official documentation only lists MPC values for Visual Studio 2019 and 2022 (e.g., Professional 2022 = 09662). Because 2026 MPC is missing, StorePID.exe returns PID_ACTION_INVALID (2) when you try to use a 2022 MPC.

    For now, activate through the IDE or wait until Microsoft updates the MPC table for 2026.

    Reference: Automatically apply product keys when deploying Visual Studio

    Please let us know if you require any further assistance, we’re happy to help.

    If you found this information useful, kindly mark this as "Accept Answer".


2 additional answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-17T19:58:23.3+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error code 2 (PID_ACTION_INVALID) indicates that the product key you are using may not be valid for the version of Visual Studio you are trying to activate. The MPC (Microsoft Product Code) for Visual Studio 2022 Enterprise is 09660, and for Visual Studio Professional, it is 09662. However, since you mentioned Visual Studio 2026, it is possible that the MPC has changed or is not yet documented in the available resources.

    To resolve this issue, I recommend checking the official Microsoft documentation or support channels for the correct MPC for Visual Studio 2026. If the product key works when activated manually through the IDE, it suggests that the key itself is valid, but there may be a mismatch with the MPC when using StorePID.exe.

    For further assistance, consider reaching out to Microsoft support or checking the Visual Studio Developer Community for updates regarding the activation of Visual Studio 2026.


    References:

    0 comments No comments

  2. carl carl 80 Reputation points
    2025-11-24T15:34:38.7566667+00:00

    It looks like the issue comes from using the wrong MPC for offline activation. StorePID.exe in Visual Studio expects an MPC that matches the offline installation channel, not just the license key itself.

    Even though the key works in the IDE portal, the offline tool validates against a specific MPC tied to that installation type. Error PID_ACTION_INVALID usually means the MPC doesn’t match the offline installer.

    0 comments No comments

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.