If it encounters errors, it returns one of the following codes, depending on the error condition: Error If StorePID.exe successfully applies the product key, it returns an %ERRORLEVEL% of 0. ::: moniker range="vs-2019" Visual Studio Edition
The following table lists the MPC codes for each edition of Visual Studio: Visual Studio Edition "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\StorePID.exe " AAAAA-BBBBB-CCCCC-DDDDDD-EEEEEE 09260 Make sure to include the dashes in the product key.
#VISUAL STUDIO ENTERPRISE 2017 KEY CODE#
Follow it with the product key and the Microsoft Product Code (MPC).
Run StorePID.exe with elevated privileges, either by using a System Center agent or an elevated command prompt. StorePID.exe is a utility program that installs with Visual Studio 2019 at the following default location:Ĭ:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE You can activate an installed version of Visual Studio with a product key by using the StorePID.exe utility on the target machines, in silent mode. StorePID.exe is a utility program that installs with Visual Studio 2017 at the following default location:Ĭ:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE You can set a product key on a device programmatically either during an installation of Visual Studio or after an installation completes.
You can apply your product key programmatically as part of a script that is used to automate the deployment of Visual Studio. Automatically apply product keys when deploying Visual Studio