on 09-11-2018 08:30 PM - edited on 12-18-2023 05:00 PM by Nils
This page provides instructions for silently installing LsAgent on your computer, listing a number of links to download LsAgent and showing some sample commands for a silent install.
Lansweeper includes several agentless scanning methods to scan the assets in your network. You can scan the Linux, Unix, Mac and Windows computers, VMware servers and other devices in your network without installing any Lansweeper software on the machines you're scanning.
Optionally, you can scan your computers with a scanning agent instead. LsAgent is a scanning agent introduced in Lansweeper 7.0. It is a cross-platform, lightweight program that you can install on Windows, Linux and Mac computers and that automatically collects an inventory from the computer it's installed on. LsAgent sends scanned data back to your Lansweeper installation, either directly or through our relay server in the cloud. Data is securely sent to the relay server over HTTPS, stored in an encrypted format and deleted once a scanning server has retrieved it.
Thanks to the relay server connectivity, LsAgent can even scan computers outside of your network and over the internet. LsAgent can be visibly or silently installed on Windows, Linux and Mac computers. When LsAgent's been installed on a computer, it automatically starts scanning the machine once per day. Scanning schedules can be customized further through the Lansweeper web console.
Available parameters for silent LsAgent installation are mentioned further in this article, along with some sample commands. Once you've put together your silent install command, you can add it to scripts, policies, jobs or (in the case of Windows computers) Lansweeper deployment packages.
There is a separate LsAgent installer for Windows, Linux and Mac.
Program Files (x86)\Lansweeper\Client
.Linux: available on this download page. A legacy installer version 9.5.0.2 is also available on this page for legacy operating systems that do not support .NET 6.0.
Mac: available on this download page. A legacy installer version 9.5.0.2 is also available on this page for legacy operating systems that do not support .NET 6.0.
LsAgent accepts the following parameters:
--server <name or IP address of your Lansweeper scanning server>
--port <scanning server listen port>
--agentkey <cloud relay authentication key>
--prefix <installation folder>
--mode unattended
Below are just a few sample commands illustrating the silent install procedure for LsAgent.
LsAgent-windows.exe --server LAN-001 --port 9524 --agentkey 4c2db649-014a-41f5-a01d-08950d7af --mode unattended
LsAgent-linux-x64.run --agentkey 4c2db649-014a-41f5-a01d-08950d7af --mode unattended
LsAgent-osx.app/Contents/MacOS/installbuilder.sh --agentkey 4c2db649-014a-41f5-a01d-08950d7af --mode unattended
Was this post helpful? Select Yes or No below!
Did you have a similar issue and a different solution? Or did you not find the information you needed? Create a post in our Community Forum for your fellow IT Heroes!
More questions? Browse our Quick Tech Solutions.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try NowExperience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now