Shopping Cart (0)

Your cart is empty

Add a genuine software licence to get started.

Browse Licences
Home › Blog › Office Guides
Office Guides

How to Activate Visual Studio 2022 & 2026 Professional / Enterprise (Admin & Offline License Guide)

How to Activate Visual Studio 2022 & 2026 Professional / Enterprise (Admin & Offline License Guide)

Visual Studio 2022 (and the latest Visual Studio 2026) is the gold-standard Integrated Development Environment (IDE) for .NET, C++, C#, Azure cloud, and enterprise software engineering. While Visual Studio Community limits commercial usage to non-enterprise teams, Visual Studio 2022 Professional, Visual Studio 2022 Enterprise, and Visual Studio 2026 Professional are licensed for unrestricted commercial use and add CodeLens. Live Unit Testing, IntelliTrace and architecture validation are Enterprise-only features.

One of the most frequent questions from US, Canadian, and international developers is: "How do I run Visual Studio 2022 Professional as admin and activate the license without an email login or MSDN subscription?" In this comprehensive technical guide, we cover GUI activation, running as Administrator, offline activation without signing into a Microsoft account, and silent CLI registration via StorePID.exe.

Method 1: Standard GUI Activation (Unlock with a Product Key)

If you have installed Visual Studio 2022 or 2026 Professional/Enterprise from the official Visual Studio Installer, you can bypass the Microsoft Account sign-in prompt and apply a standalone 25-character retail license key directly:

  1. Right-click the Visual Studio 2022 shortcut on your desktop or Start Menu and select Run as administrator (recommended so Windows allows writing the encrypted license token to the system registry).
  2. If prompted to "Sign in to Visual Studio" on first launch, click Skip this for now at the bottom of the dialog.
  3. Once the IDE opens, click Continue without code (or open any existing solution).
  4. In the top navigation bar, go to Help > Register Product (or File > Account Settings).
  5. Under the License Status panel on the right, click the blue link: Unlock with a Product Key.
  6. Paste your 25-character key (format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX) purchased from WindowsKey.
  7. Click Apply. The status will immediately update to: "License: Product key applied".

Pro Tip — Why Run as Administrator During Activation?
Visual Studio stores perpetual machine-wide product keys inside protected Windows system registry hives (HKEY_CLASSES_ROOT\Licenses). If you run Visual Studio under a restricted standard user account without elevation, clicking "Apply" may silently fail or revert on the next restart. Running Visual Studio as Administrator once while applying your product key permanently binds the license for all local user profiles on that workstation.

Method 2: How to Activate Visual Studio 2022 Professional Without Email Login (Offline Mode)

Many corporate environments, government labs, and privacy-conscious developers prohibit linking personal or corporate Microsoft emails to local IDEs. When using a perpetual retail key from WindowsKey, no email login is required:

  • Disable Periodic Sign-in Prompts: Navigate to Tools > Options > Environment > Accounts and uncheck "Authenticate across all Azure Active Directory instances" if you work strictly offline.
  • Zero Subscription Expiry: Unlike cloud sign-in licenses that check Microsoft servers every 30 days and lock the IDE if a subscription lapses, a 25-character product key activates locally and never expires.

Method 3: Command-Line Admin Activation via StorePID.exe (Silent / Enterprise Deployment)

System administrators deploying Visual Studio across multiple developer workstations or CI/CD build agents can activate Visual Studio silently from an elevated Command Prompt or PowerShell window using Microsoft's built-in StorePID.exe utility:

  1. Press Win + X and select Terminal (Admin) or Command Prompt (Admin).
  2. Run StorePID.exe with your 25-character key (including dashes) and the corresponding Microsoft MPC (Microsoft Product Code):
    "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\StorePID.exe" XXXXX-XXXXX-XXXXX-XXXXX-XXXXX 09662
  3. For Visual Studio 2022 Enterprise, use the Enterprise path and MPC code 09660:
    "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\StorePID.exe" XXXXX-XXXXX-XXXXX-XXXXX-XXXXX 09660

    Visual Studio 2026 installs under Microsoft Visual Studio\18 and uses MPC 09862 for Professional and 09860 for Enterprise.

This command immediately writes the encrypted PID to the machine store without launching the GUI or asking for an email login.

Visual Studio Edition Comparison: 2022 Pro vs. 2022 Enterprise vs. 2026 Pro

Feature VS 2022 Professional VS 2022 Enterprise VS 2026 Professional
64-Bit IDE Architecture Yes (Full 64-bit) Yes (Full 64-bit) Yes (Full 64-bit)
Offline Product Key Activation Yes (No Email Required) Yes (No Email Required) Yes (No Email Required)
CodeLens & Peek References Included Included Included
IntelliTrace & Live Unit Testing Not included Included Not included
License Type at WindowsKey Lifetime Key ($82.99) Lifetime Key ($83.00) Lifetime Key ($85.00)

Troubleshooting Common Visual Studio Activation Issues

1. "Product key could not be applied" Error

This happens for one of two reasons: (a) Visual Studio was not launched with Run as administrator privileges, or (b) you installed the Community edition instead of Professional or Enterprise. Community edition does not accept product keys—open the Visual Studio Installer, install the matching Professional or Enterprise workload, and then enter your key.

2. Moving Your Visual Studio License to a New Developer PC

Need to upgrade your workstation? Simply uninstall Visual Studio from the old PC and activate your key on the new machine. If you need genuine perpetual keys with instant 2-minute email delivery, explore our official Visual Studio catalog:

Instant Digital Delivery (US / CA / Global)

Featured License Keys Mentioned in This Guide

View All 69 Licenses →

Need an authentic software licence?

WindowsKey provides genuine Windows, Office, and Server activation keys with instant digital delivery and 14-day money-back guarantee.

Browse Shop