Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Prepare the Windows logon scripts
Using Logon Agent | Forcepoint Web Security and Forcepoint URL Filtering | 29-Apr-2022
The default logon.bat file contains instructions for using the scripting parameters, and two sample scripts: a logon script that runs the logon application and a logout script. The logout script removes user information from the user map when the user logs out. Only Windows Active Directory can use both types of scripts.
Construct a logon or logout script using the samples provided and the parameters in the table below. When you have finished customizing the script, continue with Configure the Windows logon scripts to run.
The required portion of the logon script is:
LogonApp.exe http://<server>:<port>
Be sure to enter a hard return at the end of the line.
This command runs LogonApp.exe in persistent mode (the default).
 
Note 
 
Copies the logon application to the %USERPROFILE%\Local Settings\Temp directory on users' machines, where it is run by the logon script from local memory. This optional parameter helps to prevent your logon script from hanging.
Examples
The sample logon script sends user information to the Logon Agent at logon only. The information is not updated during the user's session (NOPERSIST). The information is sent to port 15880 on the server identified by IP address 10.2.2.95.
LogonApp.exe http://10.2.2.95:15880 /NOPERSIST
With Active Directory you have the option to clear the logon information for each user as soon as the user logs out. (This option is not available with Windows NTLM.) Create a companion logout script in a different batch file, and place it into a different directory than the logon script.
Copy the logon batch file and rename it Logout.bat. Edit the script to read:
LogonApp.exe http://10.2.2.95:15880 /NOPERSIST /LOGOUT

Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Copyright 2022 Forcepoint. All rights reserved.