Skip to content

Commit 86a2aa2

Browse files
authored
Update file-sync-agent-silent-installation.md
1 parent e8d47e3 commit 86a2aa2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

articles/storage/file-sync/file-sync-agent-silent-installation.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ This article covers how to silently install the Azure File Sync agent using defa
1515
## Silent installation that uses default settings
1616
To run a silent installation for a new agent installation that uses the default settings, run the following command at an elevated command prompt:
1717

18+
```
1819
msiexec /i packagename.msi /qb /l*v AFSInstaller.log
19-
20+
```
2021
For example, to install the Azure File Sync agent for Windows Server 2016, run the following command:
2122

23+
```
2224
msiexec /i StorageSyncAgent_WS2016.msi /qb /l*v AFSInstaller.log
25+
```
2326

2427
> [!NOTE]
2528
> 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,11 +32,15 @@ To run a silent installation that uses custom settings, use the parameters that
2932

3033
For example, to run a silent installation by using custom proxy settings, run the following command:
3134

35+
```
3236
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+
```
3338

3439
For example, to run a silent installation by using an unattend answer file, run the following command:
3540

41+
```
3642
msiexec /i StorageSyncAgent_WS2016.msi UNATTEND_ANSWER_FILE=c:\agent\unattend.ini /qb /l*v AFSInstaller.log
43+
```
3744

3845
The unattend answer file should have the following format:
3946

0 commit comments

Comments
 (0)