This guide will show you how to uninstall Azure Arc setup from Windows Server 2022 that is added after installing the October 2023 KB5031364 cumulative update.
The October 2023 cumulative update KB5031364 adds an Azure Arc Setup Optional Component to Windows Server 2022. It includes a new Azure Arc system tray icon and a new Server Manager entry for Azure Arc Management. There is also a graphical installer for the Azure Connected Machine agent.
Azure Arc-enabled servers are designed to help you connect servers running on-premises or in other clouds to Azure. Learn more about how to connect Windows Server machines to Azure through Azure Arc Setup.
If you are patching your domain controllers running Windows Server 2022, chances are that the Azure Arc setup feature is installed on all these machines. Domain controllers do not require this component at all, even though it is added as an “optional feature,” especially if you do not want to integrate them with the cloud.
KB5031364
Many system administrators noticed that after installing the October 2023 Patch Tuesday update KB5031364, the Windows Servers showed up with a new Azure Arc setup component on the Start menu, including a system tray icon.
In the below screenshot, we see the Azure Arc system tray icon that was added after installing the KB5031364 update. When you click on the Azure Arc icon in the system tray, it displays an option to launch the Azure Arc setup.
If you don’t plan to use the Azure Arc setup to integrate your server with the Azure Cloud, you can safely disable or uninstall this feature from Windows Server.
Note: Uninstalling the KB5031364 update from Server 2022 removes the Azure Arc setup, but you should not do so because the update includes other security fixes that are critical to your server.
We will now go through some methods to remove the Azure Arc Setup feature installed on Windows Server 2022. Uninstalling Azure Arc Setup does not uninstall the Azure Connected Machine agent from the machine.
Remove Azure Arc Setup feature via Server Manager
Step 1: Launch the Server Manager and select Manage > Remove Roles and Features.
Step 2: On the Sever Selection window, select the Windows server from which you want to remove the Azure Arc setup component. Click Next.
Step 3: Click Next on the Server Roles section.
Step 4: On the Features page, uncheck “Azure Arc Setup“. This action will remove the Azure Arc Setup feature on the server. Click Next.
Step 5: The confirmation window shows the roles and features that are about to be removed, which includes the Azure Arc Setup. In the confirmation window, click Remove.
Step 6: The Azure Arc Setup feature is removed from Windows Server 2022. You must restart the server to finish removing this feature.
Uninstall Azure Arc Setup using PowerShell
Removing the Azure Arc setup with PowerShell is faster, but it requires a system restart. You can use this method to remove the Azure Arc setup component on Windows servers managed by SCCM.
When you have multiple Windows Servers in your setup, you can add the PowerShell command to the task sequence and deploy it to the Windows Server 2022 device collection. This will help you remove the Azure Arc setup on multiple servers at once.
Run the below PowerShell command to uninstall the Azure Arc setup from Windows Server.
Uninstall-WindowsFeature -Name AzureArcSetup
You must restart the server to finish the removal process.
Run the below PowerShell command to disable the Azure Arc Setup on Windows Server.
Disable-WindowsOptionalFeature -Online -FeatureName AzureArcSetup
You must restart the server to finish the removal process.
Run the below PowerShell command to remove the AzureArcSetup Windows feature from Server 2022.
Remove-WindowsFeature AzureArcSetup
You must restart the Windows server to finish the removal process.
Read Next
- Enable Windows Search Service on Windows Server
- Install Windows Server 2022 Core: A Step-by-Step Guide
- Patch Server Core Installation with latest Windows Updates
- Find Who Uninstalled Application from Server
- Uninstall Windows Defender on Windows Server
Still Need Help?
If you need further assistance on the above article or want to discuss other technical issues, check out some of these options.