Policy

Remove out-of-support components during updates

This setting will cause updates to automatically remove all components from all Visual Studio installations that have transitioned to an out-of-support state. If set to 1 (enabled), then the Visual Studio installer will remove all out-of-support components during all subsequent updates. If set to 0 (disabled) or missing entirely, then the remove out-of-support components behavior will respect other locations where this can be configured, such as commandline parameter or the Update Settings dialog. This functionality requires the Visual Studio 2022 version 17.4 installer to be installed on the client machine. For more information, see https://aka.ms/vs/setup/policies.

Policy
Pack Visual Studio
Category Install and Update Settings
Policy ID f422e925ce59
Internal name RemoveOutOfSupport

Registry

Copy registry mappings

HKLM\SOFTWARE\Policies\Microsoft\VisualStudio\Setup\RemoveOos (enabled) = 1
HKLM\SOFTWARE\Policies\Microsoft\VisualStudio\Setup\RemoveOos (disabled) = 0

Policy notes

This setting will cause updates to automatically remove all components from all Visual Studio installations that have transitioned to an out-of-support state. If set to 1 (enabled), then the Visual Studio installer will remove all out-of-support components during all subsequent updates. If set to 0 (disabled) or missing entirely, then the remove out-of-support components behavior will respect other locations where this can be configured, such as commandline parameter or the Update Settings dialog. This functionality requires the Visual Studio 2022 version 17.4 installer to be installed on the client machine. For more information, see https://aka.ms/vs/setup/policies.

Related policies