|
| 1 | +--- |
| 2 | +title: How to install the Azure File Sync agent silently |
| 3 | +description: Discusses how to perform a silent installation for a new Azure File Sync agent installation |
| 4 | +author: khdownie |
| 5 | +ms.service: azure-file-storage |
| 6 | +ms.topic: how-to |
| 7 | +ms.date: 07/03/2024 |
| 8 | +ms.author: kendownie |
| 9 | +--- |
| 10 | + |
| 11 | +# How to perform a silent installation for a new Azure File Sync agent installation |
| 12 | + |
| 13 | +This article covers how to silently install the Azure File Sync agent using default or custom settings. |
| 14 | + |
| 15 | +## Silent installation that uses default settings |
| 16 | +To run a silent installation for a new agent installation that uses the default settings, run the following command at an elevated command prompt: |
| 17 | + |
| 18 | +``` |
| 19 | +msiexec /i packagename.msi /qb /l*v AFSInstaller.log |
| 20 | +``` |
| 21 | +For example, to install the Azure File Sync agent for Windows Server 2016, run the following command: |
| 22 | + |
| 23 | +``` |
| 24 | +msiexec /i StorageSyncAgent_WS2016.msi /qb /l*v AFSInstaller.log |
| 25 | +``` |
| 26 | + |
| 27 | +> [!NOTE] |
| 28 | +> Use the /qb switch to display restart prompts (if required), agent update, and server registration screens. To suppress the screens and automatically restart the server (if required), use the /qn switch. |
| 29 | +
|
| 30 | +## Silent installation that uses custom settings |
| 31 | +To run a silent installation for a new agent installation that uses custom settings, use the parameters that are documented in the table below. |
| 32 | + |
| 33 | +For example, to run a silent installation by using custom proxy settings, run the following command: |
| 34 | + |
| 35 | +``` |
| 36 | +msiexec /i StorageSyncAgent_WS2016.msi USE_CUSTOM_PROXY_SETTINGS=1 PROXY_ADDRESS=10.0.0.1 PROXY_PORT=80 PROXY_AUTHREQUIRED_FLAG=1 PROXY_USERNAME=username PROXY_PASSWORD=password /qb /l*v AFSInstaller.log |
| 37 | +``` |
| 38 | + |
| 39 | +For example, to run a silent installation by using an unattend answer file, run the following command: |
| 40 | + |
| 41 | +``` |
| 42 | +msiexec /i StorageSyncAgent_WS2016.msi UNATTEND_ANSWER_FILE=c:\agent\unattend.ini /qb /l*v AFSInstaller.log |
| 43 | +``` |
| 44 | + |
| 45 | +The unattend answer file should have the following format: |
| 46 | + |
| 47 | +ACCEPTEULA=1 |
| 48 | +ENABLE_AZUREFILESYNC_FEATURE=1 |
| 49 | +AGENTINSTALLDIR=%SYSTEMDRIVE%\Program Files\Azure\StorageSyncAgent |
| 50 | +ENABLE_MU_ENROLL=1 |
| 51 | +ENABLE_DATA_COLLECTION=1 |
| 52 | +ENABLE_AGENT_UPDATE_POSTINSTALL=1 |
| 53 | +USE_CUSTOM_PROXY_SETTINGS=1 |
| 54 | +PROXY_ADDRESS=10.0.0.1 |
| 55 | +PROXY_PORT=80 |
| 56 | +PROXY_AUTHREQUIRED_FLAG=1 |
| 57 | +PROXY_USERNAME=username |
| 58 | +PROXY_PASSWORD=password |
| 59 | + |
| 60 | +**Azure File Sync agent installation parameters** |
| 61 | + |
| 62 | +| Parameter | Purpose | Values | Default Value | |
| 63 | +|-----------|---------|--------|-----------| |
| 64 | +|ACCEPTEULA|Azure File Sync license agreement|0 (Not accepted) or 1 (Accepted)|1| |
| 65 | +|ENABLE_AZUREFILESYNC_FEATURE|Azure File Sync feature installation option|0 (Do not install) or 1 (Install)|1| |
| 66 | +|AGENTINSTALLDIR|Agent installation directory|Local Path|%SYSTEMDRIVE%\Program Files\Azure\StorageSyncAgent| |
| 67 | +|ENABLE_MU_ENROLL|Enroll in Microsoft Update|0 (Do not enroll) or 1 (Enroll)|1| |
| 68 | +|ENABLE_DATA_COLLECTION|Collect data necessary to identify and fix problems|0 (No) or 1 (Yes)|1| |
| 69 | +|ENABLE_AGENT_UPDATE_POSTINSTALL|Check for updates after agent installation completes|0 (No) or 1 (Yes)|1| |
| 70 | +|USE_CUSTOM_PROXY_SETTINGS|Use default proxy settings (if configured) or custom proxy settings|0 (Default Proxy) or 1 (Custom Proxy)|0| |
| 71 | +|PROXY_ADDRESS|Proxy server IP address|IP Address|| |
| 72 | +|PROXY_PORT|Proxy server port number|Port Number|| |
| 73 | +|PROXY_AUTHREQUIRED_FLAG|Proxy server requires credentials|0 (No) or 1 (Yes)|| |
| 74 | +|PROXY_USERNAME|User name used for authentication|Username|| |
| 75 | +|PROXY_PASSWORD|Password used for authentication|Password|| |
| 76 | +|UNATTEND_ANSWER_FILE|Use unattend answer file|Path|| |
0 commit comments