H2. Dr.Web Agent for Windows

The start instruction format

es-service.exe [<switches>]

Switches

Each switch may be set in one of the following formats (formats are equivalent):

-<short_switch>[ <argument>]

or

--<long_switch>[=<argument>]

Switches may be used simultaneously including short and long versions.

warning

If an argument contains spaces, it must be enclosed in quotes.

 

All switches can be executed not dependently on permissions granted for the station on Dr.Web Server. I.e. even if permissions to change the Agent settings are denied on Dr.Web Server, you can change these settings via the command line switches.

Allowed switches

Show help:

-?

--help

Change address of Dr.Web Server to which the Agent connects:

-e <Dr.Web_Server>

--esserver=<Dr.Web_Server>

To set several Dr.Web Servers at a time, you must repeat via the space character the -e switch for each Dr.Web Server address, e.g.:

es-service -e 192.168.1.1:12345 -e 192.168.1.2:12345 -e 10.10.1.1:1223

or

es-service --esserver=10.3.1.1:123 --esserver=10.3.1.2:123 --esserver=10.10.1.1:123

Add the public encryption key:

-p <key>

--addpubkey=<key>

Public key specified as an argument is copied to the Agent folder (the %ProgramFiles%\DrWeb folder by default), is renamed to drwcsd.pub (if the name differs) and reread by the service. At this, previous public key file, if presented, is renamed to drwcsd.pub.old and no longer used.

All public keys which were used previously (keys transmitted from Dr.Web Server and stored in the registry) are remained and used.

Add the Dr.Web Server certificate:

-c <certificate>

--addcert=<certificate>

Dr.Web Server certificate file specified as an argument is copied to the Agent folder (the %ProgramFiles%\DrWeb folder by default), is renamed to drwcsd-certificate.pem (if the name differs) and reread by the service. At this, previous certificate file, if presented, is renamed to drwcsd-certificate.pem.old and no longer used.

All certificates which were used previously (certificates transmitted from Dr.Web Server and stored in the registry) are remained and used.

Reconnect to the Server as a newbie:

-w <value>

--newbie=<value>

Valid values: once, always. When set to always , the authorization parameters of the Agent are reset every time the service is started, and the Agent always connects to the Server as a newbie (see Administrator Manual, the New Stations Approval Policy section for more details). When set to once , the authorization parameters of the Agent will be reset the next time the service is started, after which the Agent will reconnect to the Server as a newbie just once.

Change the Agent log details level:

--change-loglevel=<level>

Allowed values of log details level: err, wrn, inf, dbg, all.

This switch works only under administrator rights and does not require switching off Self-Protection or manually restart of the service or OS.