Remove out-of-support components during updates
Jump to overview

Policy overview

Key metadata and intent for this policy.

Computer
Category
Visual Studio > Install and Update Settings
Supported on
Visual Studio 2022 and higher.

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.

Internal name
RemoveOutOfSupport
Policy ID
f422e925ce59
Elements
0

Registry values

How enabled and disabled states update the registry.

ScopeRegistry locationTypeEnabled valueDisabled valueCopy
Computer
Path
SOFTWARE\Policies\Microsoft\VisualStudio\Setup
Value name
RemoveOos
REG_DWORD
HKLM
1
HKLM
0
Registry location
Type REG_DWORD · Computer
Path
SOFTWARE\Policies\Microsoft\VisualStudio\Setup
Value name
RemoveOos
Hive
HKLM
Enabled value
1
Disabled value
0

Policy elements

Inputs and configuration options exposed by this policy.

This policy has no additional user input fields.