Policy
Remove out-of-support components during updates
Visual Studio
Policy overview
Key metadata and intent for this policy.
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.
Registry values
How enabled and disabled states update the registry.
| Registry location | Type | Enabled value | Disabled value |
|---|---|---|---|
| HKLM\SOFTWARE\Policies\Microsoft\VisualStudio\Setup\RemoveOos | REG_DWORD | 1 | 0 |
Policy elements
Inputs and configuration options exposed by this policy.
This policy has no additional user input fields.
Other policies in this category
Explore related policies at the same level.
- ComputerAllow standard users to execute installer operationsVisual Studio 2017 and higher.
- ComputerControl what products are available to install on the Visual Studio Installer's Available tab.Visual Studio 2022, 17.13 and higher.
- ComputerCustom path to the update configuration fileVisual Studio 2017 and higher.
- ComputerDisable downloading updates automaticallyVisual Studio 2017 and higher.
- ComputerDisable the ability to rollback or undo a Visual Studio updateVisual Studio 2022 and higher.
- ComputerDisable update notifications in Visual StudioVisual Studio 2022, 17.12 and higher.
- ComputerDisplay administrator update notificationsVisual Studio 2017 and higher.
- ComputerEnable administrator updatesVisual Studio 2017 and higher.
- ComputerHide the Available tab shown in the Visual Studio InstallerVisual Studio 2017 and higher.
- ComputerKeep package payloads after installationVisual Studio 2017 and higher.
- ComputerOpt out of administrator updatesVisual Studio 2017 and higher.
- ComputerPackage manifest and payload cache pathVisual Studio 2017 and higher.