Search code examples
visual-studiouac

Trying to install Visual studio 2022 without admin rights


I'm trying to give a way for end users to install visual studio professional 2022 without admin rights in an entreprise context (computers managed by intune).

To do that i created a policy in intune with parameter AllowStandardUserControl with value 2 like described here : configure-policies-for-enterprise-deployments

In registry, in

HKLM\Software\Policies\Microsoft\VisualStudio\setup

i have a key AllowStandardUserControl with value 2.

But when i try to execute vs_professional.exe, i have UAC. So how can i used this functionnality to install or modify visual studio without admin right?

i try to download vs_professional.exe from microsoft and execute it but, UAC is prompting me for admin rights.

Is someone use this way to install?


Solution

  • I finally found by myself. When policy is configured, installer must be installed with admin rights. And since version 17.8, it's possible to install only the installer by using

    vs_setup.exe install ––installeronly [--passive] [--quiet]

    After that, installer UI can be executed as a standard user. A remark, binaries are always download by system account so, if you are behind a proxy, you will have to authorized it or create a offline repo