# Agent Unattended Installation

#### New Agent, versions 1.4.1+ (Windows only)

##### Installation

To initialize the unattended installation, run the installer with **/verysilent** switch in the command line.

You can use the additional keys:

- **/login=&lt; login &gt;** **/password=&lt; password &gt; /pin=&lt; pin code &gt;** to specify your login, password, and pin code.  
    Pin-code can be any 4-digit number that will be used instead of a password to access the Agent interface. It can be different for different devices.  
    **It is mandatory to use the /login, /password, and /pin keys together**. If only one of the keys is used, login, password, and pin will be requested via GUI at the first launch.  
    Example: `/verysilent /login=email@email.com /password=StrongPass /pin=1234`
- **/token= &lt;token&gt;** to pass the authentication key instead of the login, password, and pin code.
- **/noad**<span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Roboto, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;"> key can be used in cases when the Agent needs to be installed in an Active Directory environment as a regular Agent without AD GPO integration.</span>

<span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Roboto, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;"> </span>Keys from the old Agent will be added in the subsequent releases.

##### Uninstallation

To initialize the unattended uninstallation, run the uninstaller with **/verysilent** switch in the command line.

---

#### Old Agent

<details id="bkmrk-to-initialize-the-un-1"><summary></summary>

To initialize the unattended installation, run the installer with **/S** switch in the command line (**S** must be uppercase).

You can use the additional keys:

- **/login=&lt; login &gt;** and **/pass=&lt; password &gt;** to specify your login and password.  
    Example: `safedns-agent-setup /S /login=email@email.com /pass=qwerty`  
    **It is mandatory to use the /login and /pass keys together**. If only one of the keys is used, both login and password will be requested via GUI at the first launch.
- **/prof=&lt; profile &gt;** to specify the filtering policy.  
    Example: `safedns-agent-setup /S /login=email@email.com /pass=qwerty /prof=My policy`  
    If the key is not used or the wrong policy is specified, a new policy will be created.
- **/conn=&lt; interface &gt;** to specify the network interface which needs to be protected.  
    Example: `safedns-agent-setup /S /login=email@email.com /pass=qwerty /conn=Wi-Fi`
- **/pall** to protect all network interfaces.  
    If both **/conn** and **/pall** are used, then only the former takes action. If neither key is used, only the default network interface will be protected.
- **/dupd** turns off automatic checks for the new versions of the Agent.
- **/darun** disables automatic startup of the SafeDNS Agent GUI when the system starts (no icon will be shown in the system tray). This switch does not affect the SafeDNS Agent system service.
- **/D=&lt; path &gt;** to specify the installation directory (**D** must be uppercase). It must be the last option used in the command line and must not contain any quotation marks, even if the path contains whitespace characters.  
    Example: `safedns-agent-setup /S /login=email@email.com /pass=qwerty /D=c:\program files (x86)\SafeDNS Agent`  
    Only absolute paths are supported.
- **/nogui** disables installation of the graphical user interface (GUI). When you use the key, all components will be installed, except for the dns-agent.exe file. **You must specify the login and password with this key**

<div class="pointer-container" id="bkmrk-%C2%A0"><div class="pointer anim is-page-editable"><svg class="svg-icon" data-icon="link" role="presentation" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"></svg><div class="input-group inline block"> <button class="button outline icon" data-clipboard-target="#pointer-url" title="Copy Link" type="button"><svg class="svg-icon" data-icon="copy" role="presentation" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"></svg></button></div><svg class="svg-icon" data-icon="edit" role="presentation" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"></svg></div></div>Don't enclose options containing whitespace characters in quotation marks (i.e. **/prof=My policy**).

#####   


##### Old Agent, special version for Active Directory

This version supports all commands above and one additional key:

- **/DNS=&lt; IP address &gt;** to specify the DNS forwarder.  
    Example: `safedns-agent-catserver-setup /S /login=email@email.com /pass=qwerty /DNS=192.168.0.1`

</details>