Proxy settings on the DriveLock Agent

You can also set the proxy server settings directly on the agent. The two command line commands are used for this purpose:

  • drivelock -setproxy <proxytype>;<proxy>

    • <proxytype> specifies the proxy type and can be named, pac, none or netsh

    • <proxy> contains either the proxy or the URL for the proxy auto-configuration file

  • drivelock -setproxyaccount <authscheme>;<proxyuser>;>proxypassword>

Examples of use:

drivelock -setproxy name;myproxy:myport

drivelock -setproxy pac;//myhttpserver/myproxy.pac

drivelock -setproxy none

drivelock -setproxy netsh

If the proxy requires authentication, you can set the user and password with the drivelock -setproxyaccount <authscheme>;<proxyuser>;>proxypassword> command. Here, <authscheme> is used to specify the authentication scheme (basic, ntlm, passport, digest und negotiate).

These settings are stored in the registry under the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DriveLock\Parameters. They are evaluated with priority, i.e. if a proxy has been set with the drivelock -setproxy command, all other settings are ignored.

Proxy settings that were specified when running the MSI (see the Installation Guide) or set with the drivelock -setproxy command can be deleted with drivelock -removeproxy.