# Remove-AzureArcSetup # ---------------------------------------------------------------------------- # This Script uninstalles the Azure Arc Setup (the installed Agent!), # if it´s installed in Windows Server 2025. # # Returns: - # ---------------------------------------------------------------------------- # Copyright (c) 2026 by Digital Data GmbH # # Digital Data GmbH • Ludwig-Rinn-Strasse 16 • D-35452 Heuchelheim # Tel.: 0641/202360 • E-Mail: info-flow@digitaldata.works # ---------------------------------------------------------------------------- # Creation Date / Author: 09.04.2026 / MK # Version Date / Editor: 09.04.2026 / MK # Version Number: 1.0.0.0 #-----------------------------------------------------------------------------------------------------# ############################################# main part ############################################### #-----------------------------------------------------------------------------------------------------# $AzureArcSetup = Get-WindowsCapability -Online -Name "AzureArcSetup~~~~" if ($AzureArcSetup.State -eq "Installed") { Remove-WindowsCapability -Online -Name "AzureArcSetup~~~~" } #-----------------------------------------------------------------------------------------------------# ########################################### finishing part ############################################ #-----------------------------------------------------------------------------------------------------# Remove-Variable -Name AzureArcSetup -Force -ErrorAction SilentlyContinue