→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
on 02-02-2020 07:30 PM - edited on 07-28-2023 08:24 PM by sophie
This page provides instructions on performing a silent install, uninstall, or update of Lansweeper via Windows Command Prompt.
You can perform a silent install, uninstall or update of Lansweeper via Windows Command Prompt (CMD). This can be done attended or unattended and can be very useful when setting up large environments with multiple scanning servers in an automated way.
To use the silent install feature, open a Windows Command Prompt with elevated permissions. You can find an example CMD below:
/classic
is no longer required to install the classic version of Lansweeper. However, you will still need to select your management type in the first run wizard. You can still use /classic
to skip the selection screen and go straight to on-premise management The following parameters can be used:
All parameters and values are case-insensitive, except the values provided for /dbuserconfig and /dbpassword.
If a specific parameter is not provided, a default value is assumed. For instance, if you don't specify which components to install, the assumption is made that you want to install all of them.
If the installation stops unexpectedly, its log file can be found by typing "%temp%" in the path of Windows Explorer. The log file is a .txt and will start with "Setup Log...". The final installation log file can be also found in Program Files (x86)\Lansweeper\Install
on your Lansweeper server once the installation has fully completed. Below you can find some example commands that can be used for different installation scenarios:
The below example will perform an Easy, silent installation of all Lansweeper components. The Lansweeper scanning service, database (SQL LocalDB) and web console will be installed on the same machine.
LansweeperSetup.exe /silent /accepteula /install
The below example will silently install all Lansweeper components with a Lansweeper database hosted in SQL Server and a web console hosted in IIS.
LansweeperSetup.exe /silent /accepteula /dbserver="SQLServer" /dbinstance="localhost\SQLEXPRESS" /webserver=IIS /httpport=81 /install /parts=scan,db,web
The below example will install an additional scanning server, with the Lansweeper database being hosted on a remote database instance "REMOTE_SERVER\SQLEXPRESS".
LansweeperSetup.exe /verysilent /accepteula /dbserver="SQLServer" /dbinstance="REMOTE_SERVER\SQLEXPRESS" /dbuserconfig="your_db_password" /install /parts=scan
The install parameters to use can also be stored in a config file. With the below contents in InstallConfig.ini, an installation will be performed of all Lansweeper components, with the Lansweeper database being hosted in SQL Server. The Lansweeper web console will be hosted in IIS Express using HTTP port 81.
[GENERAL] ACCEPTEULA="True" ACTION="INSTALL" PARTS="SCAN,DB,WEB" [DATABASE] DBSERVER="SQLServer" DBINSTANCE="REMOTE_SERVER\SQLEXPRESS" DBUSERCONFIG="your_db_password" ALLOWDBOVERWRITE="True" [WEBSERVER] WEBSERVER="IISExpress" HTTPPORT="81"
The below command can be used to point the Lansweeper installer to your config file.
LansweeperSetup.exe /silent /ConfigurationFile="C:\install_files\InstallConfig.ini"
LansweeperSetup.exe /silent /accepteula /install /SkipNpCapDriver
LansweeperSetup.exe /silent /upgrade /accepteula
"C:\Program Files (x86)\Lansweeper\unins000.exe" /silent
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