Deploy TeamViewer (Host or full client) - 9/9 - TeamViewer Support
<main>
<article class="userContent">
<p><br></p><p>We recommend using a specific script to deploy TeamViewer successfully on your devices.</p><p>In this article, we will show you our recommended script and explain the meaning of each parameter.</p><div class="blockquote"><div class="blockquote-content"><p class="blockquote-line"><em>This article applies to </em><a href="https://service.teamviewer.com/en-de/overview" rel="nofollow noreferrer ugc"><em>Corporate </em></a>and<em> </em><a href="https://www.teamviewer.com/en/teamviewer-tensor/" rel="nofollow noreferrer ugc"><em>Tensor</em></a><em> license holders who want to deploy TeamViewer (version 15 or newer) on their Windows devices.</em></p></div></div><p><br></p><h3></h3><h2 data-id="recommended-scripts">Recommended scripts</h2><p>⚠ <strong>Important note</strong>: Please make sure to <strong>replace [your_xxx] with your own values.</strong></p><p>This script processes the deployment in two steps:</p><ol><li>Installation of the package</li><li>Account assignment</li></ol><p><br></p><h3 data-id="script-for-the-teamviewer-host%3A">Script for the TeamViewer Host:</h3><pre class="code codeBlock" spellcheck="false" tabindex="0">start /wait MSIEXEC.EXE /i "PATH_TO_MSI_FILE\TeamViewer_Host.msi" /qn CUSTOMCONFIGID=YOUR_CUSTOM_CONFIG_ID
timeout /t 30 /nobreak
"C:\Program Files (x86)\TeamViewer\TeamViewer.exe" assignment --id YOUR_ASSIGNMENT_ID
</pre><p><br></p><h3 data-id="script-for-the-full-client-(64-bit)%3A">Script for the Full client (64-bit):</h3><pre class="code codeBlock" spellcheck="false" tabindex="0">start /wait MSIEXEC.EXE /i "PATH_TO_MSI_FILE\TeamViewer_Full.msi" /qn
timeout /t 30 /nobreak
"C:\Program Files\TeamViewer\TeamViewer.exe" assignment --id YOUR_ASSIGNMENT_ID
</pre><p><br></p><h3 data-id="script-for-the-full-client-(32-bit)%3A">Script for the Full client (32-bit):</h3><pre class="code codeBlock" spellcheck="false" tabindex="0">start /wait MSIEXEC.EXE /i "PATH_TO_MSI_FILE\TeamViewer_Full.msi" /qn
timeout /t 30 /nobreak
"C:\Program Files (x86)\TeamViewer\TeamViewer.exe" assignment --id YOUR_ASSIGNMENT_ID
</pre><p></p><p><br></p><h2 data-id="main-parameters">Main parameters</h2><p>We will explain here the parameters we used in our recommended scripts:</p><h3 data-id="msiexec.exe-i">▹msiexec.exe /i</h3><p>Installs the package.</p><p><br></p><h3 data-id="qn">▹/qn</h3><p>Allows the silent installation.</p><p><br></p><h3 data-id="path_to_msi_fileteamviewer_host.msi">▹“PATH_TO_MSI_FILE\TeamViewer_Host.msi”</h3><p>Defines the installation path.</p><p>📌<strong>Note:</strong> It can also be on a network path.</p><p><br></p><h3 data-id="customconfigidxxxxxx">▹CUSTOMCONFIGID=xxxxxx</h3><p>Applies your module's customization.</p><p>📌<strong>Note:</strong> Only applies for the TeamViewer Host.</p><p><br></p><h3 data-id="settingsfileyourpathyourfilename.tvopt">▹SETTINGSFILE=”YOURPATH\yourfilename.tvopt”</h3><p>Imports TeamViewer options.</p><p>For more information, please read the following article:</p><h4 data-id="export-settings-for-deployment">📄 <a href="https://community.teamviewer.com/English/kb/articles/16469-export-settings-for-host-deployment" rel="nofollow noreferrer ugc">Export settings for deployment</a></h4><p>📌<strong>Note:</strong> The value must be a valid absolute local path or a path to a network share. </p><p>⚠Don't use this parameter in combination with IMPORTREGFILE.</p><p><br></p><h3 data-id="enableoutlookplugintrue-or-false">▹ENABLEOUTLOOKPLUGIN=true or false</h3><p>Controls the de-/activation of the Outlook plugin</p><p><strong>true:</strong> The TeamViewer Outlook plugin is activated after installation (default)</p><p><strong>false:</strong> The TeamViewer Outlook plugin is deactivated after the installation</p><p><br></p><h3 data-id="installsecuritykeyredirection-0-or-1">▹INSTALLSECURITYKEYREDIRECTION= 0 or 1</h3><p>Installs a virtual device driver required for the security key redirection feature that allows the use of smart cards and fido-based devices through a TeamViewer session</p><p><strong>0:</strong> Does not install the driver (Default)</p><p><strong>1:</strong> Installs the driver</p><p><br></p><h3 data-id="-1"></h3><h2 data-id="optional-command-line-options">Optional command line options</h2><p>There are two additional options you can add to your command line:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">--retries
</pre><p>The assignment is retried in case of temporary errors. Note that there is a waiting time of 1 second between each try.</p><pre class="code codeBlock" spellcheck="false" tabindex="0">--timeout
</pre><p>Set the overall timeout in seconds used for <strong>all</strong> assignment tries.</p><p>Example:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">TeamViewer.exe assignment --id YOUR_ASSIGNMENT_ID
--retries=3 --timeout=120
</pre><p><br></p><h3 data-id="-2"></h3><h2 data-id="error-codes">Error codes</h2><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/B9CEJ0TWAK3K/image.png" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/B9CEJ0TWAK3K/image.png" alt="image.png" height="794" width="1407" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p>
</article>
</main>