diff --git a/Windows/ZabbixAgent/README.md b/Windows/ZabbixAgent/README.md index ff0a1fab2bff723aeef76b3ce360de95b4433f00..486b81c74bee0b25e53841aecd286c0634a2833b 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; ```