Under Session Scripts, specify the location of the session start and end scripts you want to run on Windows endpoints after Odyssey Access Client connects or disconnects with the Infranet Controller.
You can specify a fully qualified path.
Scripts can be accessed locally or remotely by means of file share or other permanently-available local network resource.
You can also use environment variables, such as %USERNAME% in the script path name. For example: \\abc\users\%USERNAME%\myscript.bat
Click Save Changes.
When Odyssey Access Client connects to the Infranet Controller, the Infranet Controller copies the session start and end scripts to a temporary directory on the endpoint (defined by the %TEMP% environment variable). When Odyssey Access Client disconnects, the Infranet Controller deletes the copied scripts from the temporary directory.
For additional information, please see the below KB: