Skip to main content

Agent Logon Script

The agentTinCanIfy shouldAgent runmust whenbe launched whenever a user logssigns on.in to Windows. To prevent message tampering,tampering and unauthorised communication, all messages are signedauthenticated byusing a sharedShared secretSecret known by the server service, console and agent. This shared secret is passedonly to the TinCanIfy Service, TinCanIfy Console, and TinCanIfy Agent.

The agent inreceives this Shared Secret as a command-line parameter when it starts. For this reason, we recommend launching the formagent ofvia 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 commanddedicated lineGroup argument.Policy

Object

For(GPO) bestwithin results, it is recommended to create a custom policy in Group Policy Management (gpo.gpmc.msc).

Ourand recommendation:

    Createconfigure a TinCanIfyuser Policylogon inscript as follows:

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

      Add a new Logon Script with the following settings:

      Script Name:Name

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

      Script Parameters:Parameters

      /SharedSecret="HmkBCAhUwx2TRCikDKKjcE8n1EVugjt4lkkYAMgZdyiUX5X4ED6ONW030wu3sE"
      

      Replace the example Shared Secret above with yourthe SharedSecretvalue setconfigured induring the TinCanIfy Service install.installation.

      Link the policy withto yourthe appropriate staff users.user accounts or organisational units (OUs).

      image.png

      This

      Once should ensure thatconfigured, the SharedSecretShared isSecret will be passed to yourthe agentsTinCanIfy Agent at each loginsign-in, allowing the agent to authenticate with the service and allowsecurely thatprocess 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.