title: Zabbix script timeout
body: <p>I'm trying to run powershell script for cleaning disk on agent from Zabbix. Seems that script is running too long and instead response I got error.</p>
  
  <pre><code>powershell -NonInteractive C:\Scripts\CleanDisk.ps1 -deleteLogsOlderThanDays 10
  </code></pre>
  
  <p>Script deletes some logs and temp folders and prints statistics. If there is only few folders to delete it work fines. But if script runs too long then dialog windows with script result ends with error <strong>Get value from agent failed: ZBX_TCP_READ</strong> </p>
  
  <p>Guess that it's because connection to client timeout. Is there some way how to get over this limitation? 
  Thx</p>