To perform a silent installation for a new agent installation, you must use the MSI package that is included in the Refresh 2 installer package. To extract the MSI package, double-click the appropriate Refresh 2 agent installer package (for example, StorageSyncAgent_PreviewRefresh2_WS2016.exe), copy the MSI packages that are located under %systemdrive%\AfsInstallerUpgrade to another location, and then cancel the attended agent installation. To perform a silent installation by using the MSI package, follow these steps:
New agent installation
To perform a silent installation for a new agent installation, run the following command at an elevated command prompt:
msiexec /i packagename.msi /qb /l*v Refresh2Installer.log
For example, to install the Azure File Sync agent for Server 2016, run the following command:
msiexec /i
torageSyncAgent.msi /qb /l*v Refresh2Installer.log
Note Use the /qb switch to display restart prompts, agent update, and server registration screens. To suppress the screens and automatically restart the server, use the /qn switch.
Update existing agent installation
To perform a silent installation for an existing agent installation, run the Refresh 2 installer package. For example, run the StorageSyncAgent_PreviewRefresh2_WS2016.exe file from an elevated command prompt.
Note A restart is required to install Refresh 2. If update KB 4130942 is not installed, two restarts are required to complete the Refresh 2 installation.