Skip to main content

Configuring the Agent Logon Script

The TinCanIfy Agent must be launched whenever a user signs in to Windows. To prevent message tampering and unauthorised communication, all messages are authenticated using a Shared Secret known only to the TinCanIfy Service, TinCanIfy Console, and TinCanIfy Agent.

The agent receives this Shared Secret as a command-line parameter when it starts. For this reason, we recommend launching the agent via Group Policy rather than relying on Startup folders, shortcuts, scheduled tasks, or manual execution. This ensures the Shared Secret is supplied consistently at each sign-in and allows the agent to securely process messages for the logged-on user.

Create a dedicated Group Policy Object (GPO) within Group Policy Management (gpmc.msc) and configure a user logon script as follows:

  1. Navigate to: User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff)

  2. Add a new Logon Script with the following settings:

    Script Name

    C:\Program Files (x86)\TinCanIfy Agent\TinCanIfy Agent.exe
    

    Script Parameters

    /SharedSecret="HmkBCAhUwx2TRCikDKKjcE8n1EVugjt4lkkYAMgZdyiUX5X4ED6ONW030wu3sE"
    
  3. Replace the example Shared Secret above with the value configured during the TinCanIfy Service installation.

  4. Link the policy to the appropriate staff user accounts or organisational units (OUs).

image.png

Once configured, the Shared Secret will be passed to the TinCanIfy Agent at each sign-in, allowing the agent to authenticate with the service and securely process messages on behalf of the logged-in user.

Result

When users sign in, the TinCanIfy Agent will automatically start with the correct Shared Secret. This allows the agent to authenticate with the TinCanIfy Service, register the user and device, and receive messages and notifications securely.

Important: If the agent is started without the correct Shared Secret, it will be unable to authenticate with the service and the user will not receive messages.