From c794c6a140467fcf32f13c27eef401de2cc9051c Mon Sep 17 00:00:00 2001 From: Marius Widmann Date: Thu, 21 Nov 2019 13:58:39 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9EtiNGrundpaketServer.txt=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tiNGrundpaketServer.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiNGrundpaketServer.txt b/tiNGrundpaketServer.txt index 183984e..cf004f0 100644 --- a/tiNGrundpaketServer.txt +++ b/tiNGrundpaketServer.txt @@ -98,7 +98,7 @@ choco install vim -y --cacheLocation="c:\temp" --params "'/NoDesktopShortcuts'" #Wird erst jetzt ausgeführt da die Installation von Zabbix vorher abgeschlossen sein muss if(($dInstallZabbix -eq "yes") -or ($dInstallZabbix -eq "")){ Write-Host Create Windows Update windowsupdates.bat file for sending data to Zabbix Trapper: - Write-Output "cscript //NoLogo winupdates.vbs $dZabbixHostname | .\zabbix_sender.exe -z $dZabbixServer -i - -c zabbix_agentd.conf" | Out-File -FilePath "C:\Program Files\Zabbix Agent\winupdates.bat" -Append -Encoding ascii + Write-Output "cscript //NoLogo `"C:\Program Files\Zabbix Agent\winupdates.vbs`" $dZabbixHostname | `"C:\Program Files\Zabbix Agent\zabbix_sender.exe`" -z $dZabbixServer -i - -c `"C:\Program Files\Zabbix Agent\zabbix_agentd.conf`"" | Out-File -FilePath "C:\Program Files\Zabbix Agent\winupdates.bat" -Encoding ascii Write-Host Copy VBS-Script for Windows Updates: wget -O "C:\Program Files\Zabbix Agent\winupdates.vbs" $dZabbixWindowsUpdatesVBSUrl Write-Host Create Task for Windows Updates polling to Zabbix: