Hello there!
Unfortunately, our asset import functionality can indeed only be used to import new assets into the Lansweeper database, it can't be used to update assets that are already in the Lansweeper database. This feature was added to our customer wish list. We aren't able to guarantee that this feature will be implemented or provide you with an estimated release date at this time.
Manually adding the asset tags to the assets would indeed be the preferred option, although this task can be cumbersome if the change affects many assets.
Theoretically, you could also accomplish this with a custom database script, but we don't provide support for this. If your Lansweeper installation is broken due to a custom database script, you would need to perform a restore of your Lansweeper installation.
Below is a high-level example of how you might go about this with a custom database script. Lansweeper has a built-in asset property called Barcode. If you didn't enter other information into it for any asset, you could use this field to store your asset tags. Then your database script could look something like this:
UPDATE tblAssetCustom Set BarCode='12345678' WHERE tblAssetCustom.Serialnumber = 'ABCDEFG'
GO
UPDATE tblAssetCustom Set BarCode='12345679' WHERE tblAssetCustom.Serialnumber = 'ABCDEFH'
GO
The above script would set the Barcode property based on the serial number of the asset. You can use other properties of course in your where clause. The above script updates two assets, but you can expand the query as much as you like. If you are already using the Barcode property for something else, you could also use one of the custom fields as described here: https://www.lansweeper.com/knowledgebase/configuring-and-adding-data-to-asset-custom-fields/
- Just to be safe, we do recommend performing a database backup prior to running any scripts. Do not skip this step. Backup instructions can be found here: https://www.lansweeper.com/knowledgebase/backing-up-your-installation/
- Stop the following services:
- The Lansweeper server service (on all your scanning servers).
- The web server service on your Lansweeper web server. Your web server service is either World Wide Web Publishing Service (IIS) or IIS Express.
- Afterward, open the DatabaseMaintenance.exe tool which can be found under Program Files (x86)\Lansweeper\Tools on your Lansweeper server or, alternatively, use SQL Server Management Studio if your Lansweeper database is hosted on SQL Server.
- Copy/paste your script in the second tab labeled Script Execution, and click Execute.
- Restart your services.