Event Hooks for Post-Connection Scripts
How users can use CSE-generated events as hooks to run scripts for Windows devices
- Updated on Mar 30, 2026
Note: This feature is only supported on Windows devices with desktop app version 4.10.0 or later.
Overview
When users connect or disconnect to Service Tunnel via CSE’s desktop app, the app automatically generates an event. This event can be used as a hook to scripts that can be used to automate parts of their workflow.
Use Cases
Setting up file shares
Users may want to map their local drive to a remote corporate drive, to enable file sharing on their network. Admins can hook a script to a CSE-generated event so that a user who connects to their Service Tunnel can then automatically connect to a remote corporate file server to retrieve files.
Sync computer policies and group policies for Windows Active Directory
Admins may want to have their group access policies synced each time users connect to their Service Tunnel. Using an event hook, admins can automate a script that syncs their Active Directory group policies each time a user connects to their Service Tunnel on their device.