Workstation command line flags
Important Version Difference
Versions before 8.4.313 → only support command line arguments / shortcut flags, and do not use
-D.
Example:-exclusiveHost=192.168.2.28:8080
Overview
CostOS Workstation can be customized at launch using command line flags.
There are two ways to apply them:
Default configuration via
CostOS.l4j.iniThis file already exists in the installation folder next to
CostOS.exe.Any
-Dflags inside it are automatically applied whenever anyone launches the application.Useful for setting company-wide or installation-wide defaults.
Extra configuration via shortcut or command line
If you need specific properties for a particular launch, add them at the end of a shortcut or when running from the command line.
These override or extend the defaults from the
.inifile.
Editing CostOS.l4j.ini
Location: same folder as
CostOS.exe.Format: one flag per line.
Example:
-Dlogfilelocation="D:\SharedLogs\costos" -DauthenticationMode=WINDOWS
Whenever the application is started, these settings will be applied.
Adding Flags via Shortcut
Exit any running instance of CostOS.
Right-click your CostOS shortcut → Properties.
In the Target field, append
-Dflags at the end.Example:
"C:\Program Files\CostOS\CostOS.exe" -DexclusiveHost=192.168.2.28:8080Launch CostOS like normal.
Adding Flags via Command Line
You can also launch CostOS directly with flags:
CostOS.exe -exclusiveHost=192.168.2.28:8080 -DauthenticationMode=WINDOWS
Supported Parameters
Flag | Description | Example |
|---|---|---|
-DexclusiveHost | Sets the server hostname. The login hostname field becomes non-editable. |
|
-DpropertiesFolder | Changes the folder where user properties/configs are saved. Useful for multiple installations. Supports Java system properties (e.g., |
|
-Dlogfilelocation | Defines the log file location. Supports Java system variables (e.g., Default: |
|
-DauthenticationMode | Sets the default authentication mode. |
|
-DssoTimeoutSeconds | Maximum time (in seconds) between login start and SSO completion. |
|
-DbrowserCommand | Command or path to launch the browser for authentication. |
|
-DpropertiesOSEncryption | Enables OS-based encryption for sensitive data stored in the ⚠️ Important: If a user profile is moved to another machine with different hardware, decryption will fail. In such cases, set this parameter to false, and the system will use a static encryption key instead. Default value: |
|