Ask the Community
Groups
Changing the Agent Working Directory - Connect IT Community | Kaseya
<main> <article class="userContent"> <h3 data-id="question">Question</h3> <p>This article may be helpful in addressing the following queries:</p> <ul><li>What are the steps for changing the existing working directory of a managed endpoint to another folder?</li> <li>After changing agent working directory, do we need to copy all of the files from old agent working directory to the new directory?</li> <li>Will change in agent working directory break anything? </li> </ul><h3 data-id="answer">Answer</h3> <p>If you set the new value for the Kaseya Working directory via the interface (<strong>Agent > Working Directory</strong> / <strong>Agent > Manage Agents > Manage button > Working Directory</strong>) or using policies (<strong>Policy Management</strong> module), it won't break anything. Kaseya will handle everything by itself. Any relevant files will be recreated or downloaded again when needed. Usually there is nothing in there that cannot be replaced.</p> <p>If you are using KAV updates pulled from LAN Cache machine you will need to reconfigure <strong>KAVUpdater</strong> share as per below article:</p> <p><a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fhelpdesk.kaseya.com%2Fentries%2F90712277-Moving-a-KAVUPDATER-share-to-another-folder-on-LANCACHE-machine">https://helpdesk.kaseya.com/entries/90712277-Moving-a-KAVUPDATER-share-to-another-folder-on-LANCACHE-machine</a></p> <p>As per the article <a rel="nofollow" href="https://kaseya.vanillacommunities.com/kb/articles/aliases/kaseya/entries/33197803-Kaseya-Agent-Working-Directory-Best-Practices">https://helpdesk.kaseya.com/entries/33197803-Kaseya-Agent-Working-Directory-Best-Practices</a>, the following Microsoft OS controlled directories should never be used as a working directory and are not allowed to be used for any new K2 v6-based or greater Agent installation:</p> <pre class="code codeBlock" spellcheck="false" tabindex="0">< OS_Installed_Partition >:\Program Files < OS_Installed_Partition >:\Document and Settings < OS_Installed_Partition >:\Temp < OS_Installed_Partition >:\Users < OS_Installed_Partition >:\Windows </pre> <p> </p> <p>If you have any agent procedures where the path to Agent Working Directory was hard-coded (e.g. C:\temp), you will need to change them. We recommend to use Agent Procedure Variables, such as Agent Working Directory Path.</p> <p> </p> <h3 data-id="applies-to">Applies to</h3> <p>Kaseya VSA - v6.3 and later.</p> </article> </main>