From 7cfed6c9a993bf802e7ac4f28cfc5b7f9a40d992 Mon Sep 17 00:00:00 2001 From: Andreas Lindemark <andreas.lindemark@liu.se> Date: Fri, 4 Apr 2025 17:27:42 +0200 Subject: [PATCH] Changed the download path, since I have moved the script. --- Windows/ZabbixAgent/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/ZabbixAgent/README.md b/Windows/ZabbixAgent/README.md index ff0a1fa..486b81c 100644 --- a/Windows/ZabbixAgent/README.md +++ b/Windows/ZabbixAgent/README.md @@ -88,7 +88,7 @@ The scheduled task `CheckAndStartZabbixAgent2` runs the script `C:\Windows\Syste ## If you have trouble with Zabbix Agent, you might have to uninstall, reboot and install Zabbix Agent again. This is a one-liner code to uninstall and reboot: ```powershell - Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force; $tempPath = [System.IO.Path]::Combine([System.Environment]::GetFolderPath('Desktop')); $script1 = "$tempPath\RemoveZabbix.ps1"; Invoke-WebRequest -Uri "https://gitlab.liu.se/andli86/snippets/-/raw/master/Windows/Chocolatey/RemoveZabbix.ps1" -OutFile $script1; & $script1; Remove-Item -Path $script1 -Force; + Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force; $tempPath = [System.IO.Path]::Combine([System.Environment]::GetFolderPath('Desktop')); $script1 = "$tempPath\RemoveZabbix.ps1"; Invoke-WebRequest -Uri "https://gitlab.liu.se/andli86/snippets/-/raw/master/Windows/ZabbixAgent/RemoveZabbix.ps1" -OutFile $script1; & $script1; Remove-Item -Path $script1 -Force; ``` -- GitLab