Installation via .bat File with Preset Parameters

Installation via .bat file with preset parametersPreparing for Installation

To install the StaffCounter Agent with predefined parameters, open and edit the cmdline_install.bat file located in the installation folder.

Parameter Values
  • /uploadurl=https://192.168.1.50/upload-v2
    Address of your local StaffCounter server. If not specified, the agent will connect by default to https://data.staffcounter.net/upload-v2.
  • /devid=111-11-11
    Device ID used to reconnect the computer to a specific device on the server. Only required when restoring or reusing an existing device record.
  • /autoregister=1
    Enables automatic monitoring of all user accounts on the PC and auto-connects to the server. Requires specifying /adminemail.
  • /adminemail=admin@mail.com
    Email address of the StaffCounter account used for auto-connection. This email will be pre-filled in the connection dialog. If omitted, manual input will be required.
  • /VERYSILENT
    Runs the installation without showing any user interface (fully silent mode).
  • /ignoreapp=mstsc
    Excludes time tracking for the MSTSC process (Microsoft Remote Desktop application).
  • /noidleapp=skype,ApplicationFrameHost
    Prevents idle time detection for specified processes (e.g., Skype and its host process).
  • /startmenu=1
    Creates a Start menu shortcut and adds an uninstall entry under “Apps & features” (default is 0 — disabled).
  • /lang=russian
    Sets the agent interface language to Russian. Other languages may be supported depending on the build.
Example of a command line with parameters:

staffcounter_install.exe /autoregister=1 /adminemail=admin@mail.com