🎯 Most-likely root cause
The Windows 11 Security Baseline normally does three things that collide head-on with Visual Studio (VS) when the user is only a Standard User:
- Removes local-admin rights, so VSIX Installer cannot copy files into
“C:\Program Files\Microsoft Visual Studio\…”.
- Enables either AppLocker or WDAC “recommended” policy that blocks any executable, DLL or script that is:
• unsigned, or
• located in a user-writable location ( %LOCALAPPDATA%, %APPDATA%, %TEMP% ).
Classic VS extensions are installed exactly there ➜ the assemblies are silently blocked when VS starts.
- Optionally, ASR/Controlled-Folder-Access rules block VS from writing to protected folders, breaking some CLI commands ( nuget, dotnet , etc.).
Put together, the developer can launch VS, but:
• “Extensions → Manage Extensions” shows nothing or cannot install/uninstall.
• Existing extensions do not load (event 3033/3077 in AppLocker log or 3076 in WDAC).
• VS Developer Command Prompt or CLI tools fail with “access denied” / “this app has been blocked”.
📋 How to confirm
- Open Event Viewer → Applications & Services Logs → Microsoft → Windows → (AppLocker / CodeIntegrity).
Block events pointing to “%LOCALAPPDATA%\Microsoft\VisualStudio*\Extensions*.dll”.
- Check if the machine has a WDAC or AppLocker policy deployed (
C:\Windows\System32\CodeIntegrity\SiPolicy.p7b or gpresult /r ).
- Ask which VS version (2019/2022) and whether the extension fails to install or fails to load. (If you can’t get to the box, the above log check is the quickest way.)
💡 Solutions that keep attack-surface low but let developers work
Pick ONE or combine where it makes sense for your environment:
────────────────────────────────────────────────────
A) Stay with Standard User + keep WDAC/AppLocker
➜ allow only known-good VS extensions
────────────────────────────────────────────────────
-
Sign & allow model
• Require every extension used by the team to be Authenticode-signed.
• Add a WDAC “Publisher” allow-rule for those signatures (or hash allow-rule if you must).
• Scope the allow-rule to %LOCALAPPDATA%\Microsoft\VisualStudio\*\Extensions\*.
Result: only the extensions you explicitly bless will load; nothing else in user space will run.
-
Path-based carve-out (quick & dirty but still contained)
• Create an WDAC/AppLocker allow-rule:
%LOCALAPPDATA%\Microsoft\VisualStudio\*\Extensions\* → Allow.
• Keep the “deny user-writable locations” rule for everything else.
That restricts the carve-out to one very specific folder tree VS controls.
-
Deploy a dual-policy approach
• “Standard Baseline” for everyone.
• “Developer WDAC policy” with the additional allow-rules, assigned only to the “Developers” AAD / AD group.
────────────────────────────────────────────────────
B) Leverage per-user VSIX install (no admin) + baseline tweaks
────────────────────────────────────────────────────
Visual Studio 2022 (17.0+) and 2019 (16.5+) can install most VSIX in per-user mode:
- In the Visual Studio Installer → Modify → Individual Components → Enable
“Install extensions to %LOCALAPPDATA% (per-user)”.
- Block per-machine installs via GPO
VS → Extensions → “Allow per-machine extension installs” = Disabled
(prevents devs from being prompted for elevation).
- Keep the WDAC path or publisher rule described above so those per-user DLLs are trusted.
────────────────────────────────────────────────────
C) Just-in-time elevation / Privilege management
────────────────────────────────────────────────────
If you have a PAM solution (Microsoft Entra PIM, BeyondTrust, CyberArk EPM, Admin-By-Request …):
• Allow the developer to request temporary local-admin rights or run a single process elevated (VSIXInstaller.exe) for < 10 minutes.
• Use audit logs to review activity.
• They stay standard user 99 % of the time; attack surface remains minimal.
────────────────────────────────────────────────────
D) Isolate the dev workstation
────────────────────────────────────────────────────
For highly regulated environments:
• Provide an Azure Dev Box / Windows 365 Cloud PC or local Hyper-V VM that is not under the strict WDAC baseline.
• Host coding there; keep the primary endpoint locked down.
📑 Concrete implementation steps (example with WDAC)
- Export current policy
ConvertFrom-CIPolicy -XmlFilePath C:\temp\BasePolicy.xml -BinaryFilePath C:\temp\BasePolicy.bin
- Add an allow rule:
# Add by path
Add-CIPolicyRule -FilePathRule "%LOCALAPPDATA%\Microsoft\VisualStudio\*\Extensions\*" -User "S-1-5-32-545" -Level FilePath -PolicyPath C:\temp\BasePolicy.xml
# or by signed publisher
Add-CIPolicyRule -CertificatePublisher "O=Contoso, CN=VS_Extension_Signing" -PolicyPath C:\temp\BasePolicy.xml
- Merge and redeploy via Intune / Group Policy / SCCM.
- Reboot → verify event log now shows “allowed” instead of “blocked”.
📝 Summary
The baseline is doing its job: blocking code execution from user-writable locations and denying writes to privileged folders. Visual Studio extensions live exactly there, so they get caught in the cross-fire. The cleanest fix is to keep users non-admin and add surgical WDAC/AppLocker allow-rules (preferably certificate-based) or switch to per-user signed extensions. If your org already owns a privilege-management platform, just-in-time elevation is another secure option.
Let me know if you need the exact policy XML snippet, VSIX signing instructions, or help reading the event logs!