H3. Dr.Web Agent for Windows®

Top  Previous  Next

The start instruction format

dwservice.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.

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 the Server. I.e. even if permissions to change the Agent settings are denied on the Server, you can change these settings via the command line switches.

Allowed switches

Show help:

-?

--help

Change address of the Server to which the Agent connects:

-e <Server>

--esserver=<Server>

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

dwservice -e 192.168.1.1:12345 -e 192.168.1.2:12345 -e 10.10.1.1:1223

or

dwservice --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.

All public keys which were used previously (including keys transmitted from the Server and stored in the registry) are remained and can be used if necessary.

Change the Agent log level of detail:

-l <level>

--loglevel=<level>

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