Skip to content

Instantly share code, notes, and snippets.

@tsleite
Created January 4, 2021 15:12
Show Gist options
  • Save tsleite/56c27dea8babce9cad239a79a3fb70d4 to your computer and use it in GitHub Desktop.
Save tsleite/56c27dea8babce9cad239a79a3fb70d4 to your computer and use it in GitHub Desktop.
# SO: Windows Server 2012, 2012R2, 2016, 2019
# Parando o serviço
c:\zabbix\bin\zabbix_agentd.exe --stop
Write-Host zabbix_agentd has been stopped
# Desinstalando o serviço
c:\zabbix\zabbix_agentd.exe --uninstall
Write-Host zabbix_agentd foi desinstalado.
# Remove/Limpa diretório Zabbix
Remove-Item c:\zabbix -Force -Recurse
# Remove/Limpa diretório c:\zabbix\log\
Remove-Item c:\zabbix_agentd.log
# Remove/Limpa regra do Firewall.
Remove-NetFirewallRule -DisplayName "Allow Zabbix communication"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment