Allow standard users to execute installer operations
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
Allows users without administrator permissions to manage their Visual Studio installations.
If set to 0 (disabled) or missing entirely, the installer will prompt for administrator permissions using UAC.
If set to 1 (enabled for Update and Rollback), users without administrator permissions can update or rollback without UAC. All other operations will ask for administrator permissions through UAC.
If set to 2 (enabled for all installer operations), users without administrator permissions can fully manage Visual Studio through the Visual Studio Installer without UAC.
For more information, see https://aka.ms/vs/setup/policies.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\VisualStudio\Setup- Nom de la valeur
AllowStandardUserControl
| État | Valeur écrite | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Activé |
| |||||||||
| Désactivé |
|
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : VisualStudio/AllowStandardUserControl
$k = 'HKLM:\Software\Policies\Microsoft\VisualStudio\Setup'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowStandardUserControl' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'AllowStandardUserControl' -Value 2 -Type DWord
#
# Options possibles :
# Enabled for Update and Rollback = 1
# Enabled for all installer operations = 2
Set-ItemProperty -Path $k -Name 'AllowStandardUserControl' -Value 1 -Type DWordDésactiver
# Désactiver : VisualStudio/AllowStandardUserControl
$k = 'HKLM:\Software\Policies\Microsoft\VisualStudio\Setup'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowStandardUserControl' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : VisualStudio/AllowStandardUserControl
$k = 'HKLM:\Software\Policies\Microsoft\VisualStudio\Setup'
Remove-ItemProperty -Path $k -Name 'AllowStandardUserControl' -ErrorAction SilentlyContinueOptions (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| AllowStandardUserControlDropID | Liste déroulanteenum | AllowStandardUserControl | REG_DWORD | Choix par défaut (interface) : n° 0
|
Application
Visual Studio (+ Dev Tunnels) (Microsoft) — modèles d'octobre 2026
Modèles d'octobre 2026 issus de pl4nty/web-admx-tool.