8
0
Files
Skriptentwickung/current/DD-Internal/Remove-AzureArcSetup/Remove-AzureArcSetup.ps1
2026-04-13 12:08:30 +02:00

30 lines
1.5 KiB
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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