Documentation
Documentation
Documentation
com
1/48
www.lansweeper.com
Prerequisites
Web server:
Windows 2000 or higher with Internet Information services installed.
The dotnet framework 2.0 installed (latest service pack).
Database server:
Windows 2000 or higher
SQL server 2000 SP4 or higher (or the free SQL express)
If you want to use SQL express 2005 or 2008 as a free database you can download it from:
http://www.microsoft.com/sql/editions/express/default.mspx
Also make sure to download SQL Server Management Studio Express if you are using SQL express.
Clients:
Windows 2000, windows XP, windows Vista, Windows 7, Windows 2000, 2003, 2008 server
(Windows 9x clients are not supported)
In this example the web console, database and service are installed on the same machine.
2/48
www.lansweeper.com
3/48
www.lansweeper.com
Set the SQL server Browser to automatic and start it (if not already started)
4/48
www.lansweeper.com
Installing Lansweeper
You can choose to install Database, Service and Website on different servers if you want; in this example we are
going to install everything on one server.
5/48
www.lansweeper.com
6/48
www.lansweeper.com
The user running the service should have administrative privileges on all clients being scanned by
lansweeper.
7/48
www.lansweeper.com
Choose a name for the Virtual Directory (recommended) or install lansweeper as the default website.
8/48
www.lansweeper.com
9/48
www.lansweeper.com
10/48
www.lansweeper.com
Sqlcmd: Error: Microsoft SQL Native Client: An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not
allow remote connections.
11/48
www.lansweeper.com
What is Lsclient.exe
Although the name would suggest otherwise lsclient is no real client or agent.
Basically it just sends a message to the server “hello, I’m here, scan me on this IP Address” and stops working.
The service queue’s this request and starts scanning the client when ready.
All the scanning is done by the lansweeper service.
Lansweeper Premium doesn’t require lsclient and uses active directory to scan your computers.
12/48
www.lansweeper.com
%logonserver%\netlogon\lsclient.exe myserver
13/48
www.lansweeper.com
Make sure that you use a logon script instead of a startup script because this is running in the context
of the user.
A sample vbs script that runs the lsclient hidden could look like this:
14/48
www.lansweeper.com
You can connect from the server to one of the clients to check if the WMI settings and access permissions are ok.
The test checks if WMI access and registry access using WMI is
possible.
15/48
www.lansweeper.com
If you want to add pictures for your users you can add them in the pictures folder of your web server:
Folder = NetBIOS name of your domain (change this to reflect the name of your domains)
Picture = username.jpg (SamAccountname)
16/48
www.lansweeper.com
You can add your website to the trusted sites for security reasons.
17/48
www.lansweeper.com
You can disable/enable the plugin afterwards from the firefox menu/tools/add-ons.
18/48
www.lansweeper.com
Logging on to the Configuration Console.
You can use integrated authentication or if you want to use sql authentication:
Logon: lansweeperuser
Default password: mysecretpassword0*
You can change the default password of the SQL user later if you want.
19/48
www.lansweeper.com
Permanently deleting computers using the GUI console
Select all the computers in the grid (ctrl & shift) for multiple selections.
20/48
www.lansweeper.com
Administering report settings
With the dropdown box you can select from all the available reports in the database.
Sort order = the lower the number, the higher the report will be displayed in the interface
If you want to create new reports: the premium version includes a report builder.
21/48
www.lansweeper.com
Configuring software license usage
On the left you see all the software found in your network.
If you want to track license usage of a software item, you can select it and add it to the list of tracked software.
22/48
www.lansweeper.com
Configuring operating system license usage
On the left you see all the windows operating systems found in your network.
If you want to track license usage of an operating system, you can select it and add it to the list of tracked
Operating systems.
23/48
www.lansweeper.com
Implementing custom actions
You can add your own icons to the “actions” folder in the web folder.
24/48
www.lansweeper.com
File size, company, version and other info is scanned for this file.
Results of these file scans can be used to create custom reports using the premium report builder.
Examples:
Who doesn’t have the latest version of Firefox installed?
Who doesn’t have the latest version of Antivirusscanner X?
Who misses the needed DLL for application X?
25/48
www.lansweeper.com
26/48
www.lansweeper.com
Add all users that are allowed to be local administrator on their computer to this list.
This will help you with the report : “Not allowed local administrators”
27/48
www.lansweeper.com
28/48
www.lansweeper.com
You can use the {assettag} and {model} parameter to link to computer vendors support pages.
29/48
www.lansweeper.com
For example:
Cdrom = 60
Information about cdroms is only scanned every 60 days.
30/48
www.lansweeper.com
If you want to use scheduled scanning (optional) you can add the computers + domains to this list.
31/48
www.lansweeper.com
If you wish to exclude some computers from scanning you can add them to this list.
32/48
www.lansweeper.com
On the lansweeper forum you will be able to download new reports, action scripts, ... created by other users.
You can install them using this interface.
33/48
www.lansweeper.com
After purchase you will receive a license key which you can copy/paste into this screen.
If you can’t find your license key, please contact us at lansweeper@hemoco.com and provide your orderID.
34/48
www.lansweeper.com
All the premium tools are standalone executable and don’t require any special installation, you can place them
wherever you like.
In this example we are going to place them on a shared folder so all administrators can use them from the action
screen.
Now change the Trigger scan action to point to the share we just created:
35/48
www.lansweeper.com
Active scanning allows you to scan multiple domain and selected OU’s without the need to use
lsclient.exe in a login script.
36/48
www.lansweeper.com
Premium only: Alternate credentials
On this page you can specify alternate credentials to scan other domains and forests.
If you want to use credentials from a computer that can not be verified (example: a dmz standalone computer)
you can check the box “Don’t try to authenticate username\password”
37/48
www.lansweeper.com
Premium only: Recover Microsoft product keys
38/48
www.lansweeper.com
Use this tool to force/trigger remote scanning of a workstation from the command line.
Example:
lstrigger "servername" "computer" "domain"
Default port = 9524
Change “servername” to the name of the server running your lansweeper service.
When you trigger a scan all information for this computer is rescanned regardless of the waittime set.
39/48
www.lansweeper.com
Premium only: Using the report builder.
Drag the 2 needed table “tblcomputer” and “tblsoftware” to the query builder and select the needed fields.
40/48
www.lansweeper.com
If you want to sort your report you will need to add the “TOP 100 percent” clause.
41/48
www.lansweeper.com
42/48
www.lansweeper.com
Premium only: Remote screenshot - see what’s on a remote computer screen.
You can also use this program from the command line or from the action screen.
Usage:
screengrab.exe {computer}
43/48
www.lansweeper.com
Premium only: Remote control - Take remote control of your workstations by pushing VNC.
Remote control the screen of your workstations to give them remote support.
The free VNC service is automatically pushed to the client on first use.
You can also use this program from the command line or from the action screen.
Usage:
lsremote.exe {computer}
44/48
www.lansweeper.com
Premium only: Remote software uninstall – list and uninstall software on remote computers.
You can also use this program from the command line or from the action screen.
Usage:
remoteuninst.exe {computer}
The only requirement is WMI and administrative rights on the remote computer.
MSI packages:
These are uninstalled by the MSIexec command.
Adding the /QN /NORESTART parameters makes the uninstall invisible to the remote users.
Other installers:
They might have optional parameters to run the uninstall hidden but this depends on the software and is not
always available.
45/48
www.lansweeper.com
Premium only: Lsrunase : encrypted runas tool.
LSrunase 2.0 can be used to run a command using another user account and passing the password as a
parameter.
Parameters:
1e parameter: specifies the username
2e parameter: specifies the domain
3e parameter: specifies the encrypted password
4e parameter: specifies the command
5e parameter: specifies the optional parameters
Examples:
lsrunase administrator Mydomain vA0j26NYqfc= notepad.exe
46/48
www.lansweeper.com
Premium only: Supercrypt : enhanced encrypted runas tool.
In this example we make the notepad.lsc file to start notepad with administrator privileges.
You can then use these encrypted .lsc files with Supercrypt to run the chosen program using the chosen account.
The executable variable makes sure that only the intended program can be run as administrator.
The technique for doing this is calculating the MD5 hash value of the executable (in this case notepad.exe).
Supercrypt makes sure that the user can only run the program it was intended to run!
Example:
supercrypt "c:\notepad.lsc"
47/48
www.lansweeper.com
(optional) Changing the service account
Open the services MMC and go to Lansweeper Server service
48/48