The API is open source and can be obtained from GitHub.
This sample script provides information on all computers including installed software, OS, user and CPU
$response = Invoke-WebRequest -Uri "http://localhost:85/api/Values" # Hier URL zu API-Lansweeper hinterlegen $data = ConvertFrom-Json $([String]::new($response.Content)) $data | Out-GridView
The installation of API Lansweeper is quite simple. You only need a Windows server (Recommended 2016/2019). Install the IIS role including all application development features (ASP.Net/.Net 4.5 etc.) on this. Download and install Web Deploy 3.6 from Microsoft.
Open your IIS and make sure your default website is called "Default Web Site". If this is not the case, please rename it. It doesn't matter which port you use.
On my GitHub repository you will find a folder with releases. Download the current API-LS-WebDeploy.7z package here and unpack it on your server on which you want to install the API. There is a CMD file in the extracted folder. Open an administrative CMD and use "cd" to navigate to the path in which you unzipped the zip file. Then run the .cmd file with the /Y parameter to install the API.
After installation, change to the web root directory of the page (C:/inetpub/wwwroot). There you will find the application you just installed and a web.config file. In this file, replace the "ConnectionString" key with the connection data to the lansweeper database (this must run on at least one SQLExpress). Save the change.
In practice it could look like this:
I always try to create useful content and try to publish my applications for free as Open Source Code. If you use this in production, please be so kind and support my work through a donation by Patreon or github. The donation helps me to cover my server / hardware and electricity costs. thank you!