Skip to main content

Agent Logon Script

The agent should run when a user logs on. To prevent message tampering, messages are signed by a shared secret known by the server service, console and agent. This shared secret is passed to the agent in the form of a command line argument. 

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

Our recommendation:

  • Create a TinCanIfy Policy in User Configuration .. Policies .. Windows Settings .. Scripts (Logon\LogOff). 
  • Script Name: C:\Program Files (x86)\TinCanIfy Agent\TinCanIfy Agent.exe.
  • Script Parameters: /SharedSecret="HmkBCAhUwx2TRCikDKKjcE8n1EVugjt4lkkYAMgZdyiUX5X4ED6ONW030wu3sE"
  • Replace with your SharedSecret set in the TinCanIfy Service install.
  • Link the policy with your staff users.

image.png

This should ensure that the SharedSecret is passed to your agents at each login and allow that user to receive messages.