cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MikeHenson
Engaged Sweeper II
We are currently running lansweeper in production using IIS Express on Server 2012 R2. We have been discussing moving to IIS this week. Is there any way to do this without a complete re-install of lansweeper?
3 REPLIES 3
Esben_D
Lansweeper Employee
Lansweeper Employee
The steps Mike took are indeed correct. You can also follow the steps in this knowledgeable article: https://www.lansweeper.com/kb/50/How-to-reinstall-your-Lansweeper-website.html
MikeHenson
Engaged Sweeper II
Steps I took to make the switch

- know or reset the database password for lansweeperuser
- if you change the password, open C:\Program Files (x86)\Lansweeper\Tools\ConfigEditor.exe and set the database password for Service and Website

- Upgrade installation to latest

- Install IIS - no need to worry about which features - lansweeper will install the required features
- Install IIS ReWrite module if you are using, or plan to use, https and want to redirect http to https

- Run Lansweeper Install
- Choose New Installation
- Choose Advanced Install
- Choose db type
- Uncheck "New Lansweeper Database"
- Uncheck "New Lansweeper Service"
- Leave "New Lansweeper Website" checked
- Choose IIS for web server
- Use a different port than IIS Express was using

- Verify the site works correctly on IIS
- If you see the message "lansweeperuser login failed" after install, open C:\Program Files (x86)\Lansweeper\Tools\ConfigEditor.exe and set the database password for Service and Website

- Uninstall IIS Express
- Set port in IIS to whatever you want it to be
AZHockeyNut
Champion Sweeper III
same system or a different one? server 2012 r2 or 2016?
if same box you will have a port conflict most likely as both iis express and iis will want the same port. either way, you can, in IIS, add an Application which points to the install folder of LS (C:\Program Files (x86)\Lansweeper\Website) and then you set permissions so you can run the site and access it.

then your url would be http or https://servername/lansweeper or whatever you call that app. mine runs that way and has for years without issue.