Skip to content

Commit 9808bc0

Browse files
authored
Create file-sync-agent-silent-installation.md
1 parent d8ccf99 commit 9808bc0

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
msiexec /i packagename.msi /qb /l*v AFSInstaller.log
19+
20+
For example, to install the Azure File Sync agent for Windows Server 2016, run the following command:
21+
22+
msiexec /i StorageSyncAgent_WS2016.msi /qb /l*v AFSInstaller.log
23+
24+
> [!NOTE]
25+
> 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.
26+
27+
## Silent installation that uses custom settings
28+
To run a silent installation that uses custom settings, use the parameters that are documented in the table below.
29+
30+
For example, to run a silent installation by using custom proxy settings, run the following command:
31+
32+
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
33+
34+
For example, to run a silent installation by using an unattend answer file, run the following command:
35+
36+
msiexec /i StorageSyncAgent_WS2016.msi UNATTEND_ANSWER_FILE=c:\agent\unattend.ini /qb /l*v AFSInstaller.log
37+
38+
The unattend answer file should have the following format:
39+
40+
ACCEPTEULA=1
41+
ENABLE_AZUREFILESYNC_FEATURE=1
42+
AGENTINSTALLDIR=%SYSTEMDRIVE%\Program Files\Azure\StorageSyncAgent
43+
ENABLE_MU_ENROLL=1
44+
ENABLE_DATA_COLLECTION=1
45+
ENABLE_AGENT_UPDATE_POSTINSTALL=1
46+
USE_CUSTOM_PROXY_SETTINGS=1
47+
PROXY_ADDRESS=10.0.0.1
48+
PROXY_PORT=80
49+
PROXY_AUTHREQUIRED_FLAG=1
50+
PROXY_USERNAME=username
51+
PROXY_PASSWORD=password
52+
53+
**Azure File Sync agent installation parameters**
54+
| Parameter | Purpose | Values | Default Value |
55+
|-|-|-|-|
56+
|ACCEPTEULA|Azure File Sync license agreement|0 (Not accepted) or 1 (Accepted)|1|
57+
|ENABLE_AZUREFILESYNC_FEATURE|Azure File Sync feature installation option|0 (Do not install) or 1 (Install)|1|
58+
|AGENTINSTALLDIR|Agent installation directory|Local Path|%SYSTEMDRIVE%\Program Files\Azure\StorageSyncAgent|
59+
|ENABLE_MU_ENROLL|Enroll in Microsoft Update|0 (Do not enroll) or 1 (Enroll)|1|
60+
|ENABLE_DATA_COLLECTION|Collect data necessary to identify and fix problems|0 (No) or 1 (Yes)|1|
61+
|ENABLE_AGENT_UPDATE_POSTINSTALL|Check for updates after agent installation completes|0 (No) or 1 (Yes)|1|
62+
|USE_CUSTOM_PROXY_SETTINGS|Use default proxy settings (if configured) or custom proxy settings|0 (Default Proxy) or 1 (Custom Proxy)|0|
63+
|PROXY_ADDRESS|Proxy server IP address|IP Address||
64+
|PROXY_PORT|Proxy server port number|Port Number||
65+
|PROXY_AUTHREQUIRED_FLAG|Proxy server requires credentials|0 (No) or 1 (Yes)||
66+
|PROXY_USERNAME|User name used for authentication|Username||
67+
|PROXY_PASSWORD|Password used for authentication|Password||
68+
|UNATTEND_ANSWER_FILE|Use unattend answer file|Path||

0 commit comments

Comments
 (0)