Disable the ability to rollback or undo a Visual Studio update
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
This policy determines whether the user can undo an update and rollback Visual Studio to the previously installed version.
If set to 1 (enabled), then users will be prevented from accessing the rollback capability, which will prevent Visual Studio from reverting the most recent update which may contain a security fix.
If set to 0 (disabled) or missing entirely, then users will be able to access the rollback feature in Visual Studio, and will be able to undo an update and rollback their Visual Studio instances to the previously installed version. Note: The default unconfigured setting enables the ability to rollback a Visual Studio update.
This policy applies to release instances of Visual Studio 2022 or higher that may be installed on the machine.
For more information, see https://aka.ms/vs/setup/policies.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\VisualStudio\Setup- Nom de la valeur
DisableRollback
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
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/DisableRollback
$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 'DisableRollback' -Value 1 -Type DWordDésactiver
# Désactiver : VisualStudio/DisableRollback
$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 'DisableRollback' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : VisualStudio/DisableRollback
$k = 'HKLM:\Software\Policies\Microsoft\VisualStudio\Setup'
Remove-ItemProperty -Path $k -Name 'DisableRollback' -ErrorAction SilentlyContinueApplication
Visual Studio (+ Dev Tunnels) (Microsoft) — modèles d'octobre 2026
Modèles d'octobre 2026 issus de pl4nty/web-admx-tool.