Installation guide

198 Websense Installation Guide
Chapter 5: Initial Setup
Deployment Tasks
To deploy LogonApp.exe with a logon script, perform the following tasks:
Task 1: Prepare the logon script: Edit the parameters in the sample script
file (
Logon.bat) to suit your needs. This file contains two sample
scripts: a logon script and a logout script. Active Directory can use
both types of scripts. If you plan to use both types, you will need two
separate
.bat files with different names.
Task 2: Configure the script to run: You can run your logon script from
Active Directory or Windows NTLM directory services using group
policies. This requires you to move the Websense executable and
logon batch file to a shared drive on the domain controller that is
visible to all user workstations. If you use Active Directory, you may
create and deploy an optional logout batch file on the shared drive.
Preparing the Logon Script
A batch file, called Logon.bat, is installed with Logon Agent in the
Websense\bin folder. This file contains some instructions for using the
scripting parameters, and two sample scripts: a logon script that runs
LogonApp.exe, and a logout script for Active Directory that removes user
information from the Websense user map when the user logs out.
Script Parameters
Using the samples provided, construct a script for your users that employs the
parameters in the following table. The required portion of the script is:
LogonApp.exe http://<server>:<port>
This command runs LogonApp.exe in persistent mode (the default), which
sends user information to the Logon Agent at predefined intervals.
Note
You can edit the sample, or create a new batch file
containing a single command.