Change Automox Script Execution Location
Automox executes actions from a fixed location. You can change this location if you prefer.
The Automox agent
Lightweight client application, which is installed on managed devices. uses PowerShell
Scripting language used for Windows worklets. scripts to execute most of its functions including scanning
The process of re-inventorying a device for patches and software. and patching.
These scripts execute from a fixed directory on the local device
A subset of Assets, a general term denoting anything that runs the Automox Agent and is registered with the system.. By default this is set to the following locations:
- Windows:
- For Agent ≥ 40:
- For 32-bit systems:
C:\Program Files\Automox\ - For 64-bit systems:
C:\Program Files (x86)\Automox\
- For 32-bit systems:
- For Agent ≤ 39:
C:\ProgramData\amagent\
- For Agent ≥ 40:
- macOS:
/Library/Application Support/Automox/ - Linux:
/var/lib/amagent
Changing the Default Execution Location
If you prefer these actions to run from a different default path, you can set that using an agent command on the device (--setexecdir)
The next time the Automox agent service restarts, it uses the newly specified location for running its scripts.
Some endpoint security applications block scripts that don't originate from a designated location. The most common reason to modify this setting is to move it to an allowlist or preferred directory for your security software.
Windows
64-bit Systems
'C:\Program Files (x86)\Automox\amagent.exe' --setexecdir C:\MyPath\MyDir
32-bit Systems
'C:\Program Files\Automox\amagent.exe' --setexecdir C:\MyPath\MyDir
macOS
/usr/local/bin/amagent --setexecdir /MyPath/MyDir
Linux
/opt/amagent/amagent --setexecdir /MyPath/MyDir
