Last active
February 5, 2025 03:47
-
-
Save wise-io/9fd31d8203343e99844cbb9967f30298 to your computer and use it in GitHub Desktop.
PowerShell script to uninstall ZeroTier One silently
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Removes ZeroTier One | |
$Paths = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall', 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall' | |
$ZeroTierOne = Get-ChildItem -Path $Paths | Get-ItemProperty | Where-Object { $_.DisplayName -like 'ZeroTier One' } | Select-Object | |
$VirtualNetworkPort = Get-ChildItem -Path $Paths | Get-ItemProperty | Where-Object { $_.DisplayName -like 'ZeroTier One Virtual Network Port' } | Select-Object | |
if ($ZeroTierOne) { | |
Write-Output 'Uninstalling ZeroTier One...' | |
foreach ($Ver in $ZeroTierOne) { | |
$Uninst = $Ver.UninstallString | |
cmd /c $Uninst /qn | |
} | |
} | |
if ($VirtualNetworkPort) { | |
Write-Output 'Uninstalling ZeroTier Virtual Network Port...' | |
foreach ($Ver in $VirtualNetworkPort) { | |
$Uninst = $Ver.UninstallString | |
cmd /c $Uninst /qn | |
} | |
} | |
Write-Output 'Uninstall complete. Restart recommended before reinstall.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment