Ask the Community
Groups
How do I tell Automatic Update to not run if my pre-procedure fails? - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>PROBLEM:</strong></p> <p>I have a pre-procedure that I have set to run before every Automatic Update. How can I get Automatic Updates not to run if this pre-procedure fails or if it returns a bad value?</p> <p><strong>SOLUTION:</strong></p> <p>Use the 'Skip Auto Update' step within your pre-procedure.</p> <p>The <strong>Auto Pre-Agent Procedure</strong> can be used to determine whether the <strong>Automatic Update</strong> should be executed or not. After executing the <strong>Auto Pre-Agent Procedure</strong>, a registry value is checked on the machine. If this registry value exists <strong>Automatic Update</strong> is skipped; otherwise, <strong>Automatic Update</strong> is executed. To invoke this feature, the <strong>Auto Pre-Agent Procedure</strong> must include a procedure step to set the registry value below:</p> <pre class="code codeBlock" spellcheck="false" tabindex="0"> HKEY_LOCAL_MACHINE\SOFTWARE\Kaseya\Agent\SkipAutoUpdate </pre> <p><strong>Note:</strong> Any data type and any data value may be set. The test is for existence only.</p> </article> </main>