This article explains how to resolve the Errorid: -1 error you may encounter when installing or updating Lansweeper.
One of the available database server options when installing Lansweeper is SQL LocalDB. When you choose to host the Lansweeper database under LocalDB, the Lansweeper installer creates a service that runs the SQL LocalDB database server. Afterwards, this service will run under a user account created by the installer, NT Service\LansweeperLocalDbService. In order for the aforementioned user account to successfully run the LocalDB service, it must be granted the necessary permission to log on as a service. Lansweeper automatically tries to give NT Service\LansweeperLocalDbService this permission.
If you're using the SQL LocalDb database provider, you may encounter the error below when updating or installing Lansweeper.
Step 1: try to start the Lansweeper LocalDB Service
services.mscand start the Lansweeper LocalDB Service. If the service started successfully, restart the Lansweeper Server service and connect to the web console. If the Lansweeper LocalDB Service failed to start, proceed to step 2.
Step 2: verify the Log on as a service security policy
Log on as a servicepolicy. This policy can be found in Windows on your Lansweeper server by going to
Local Computer Policy > Windows Settings > Security Settings > Local Policies > User Rights Assignmentin the Local Computer Policy editor, which is accessible via MMC.
Log on as a servicepolicy for your Lansweeper server. Regardless of whether you're in a domain or not, the NT Service\LansweeperLocalDbService user must be used, other accounts are not supported.