

Psexec \\%1 cmd /c c:\\TeamViewer_Assignment.exe -apitoken -datafile "%ProgramFiles(x86)%\TeamViewer\AssignmentData.json" Psexec \\%1 -s cmd /c msiexec /qn /i "c:\\TeamViewer_Host-.msi" Ping -n 2 %%i |findstr /r /c:" *ms" > NUL & SET bHOSTUP=1 Setlocal enableextensions enabledelayedexpansion Or, my preferred method is to push it out to a batch of computers with the following: (Requires PSExec and a txt file of computer off Msiexec /qn /i "c:\\TeamViewer_Host-.msi"Ĭ:\\TeamViewer_Assignment.exe -apitoken -datafile "%ProgramFiles(x86)%\TeamViewer\AssignmentData.json" You'll need the Host MSI, the Assignment executable, and I use a reg file for the various offĬopy "\\\TeamViewer\TeamViewer_Host-.msi" "C:\\TeamViewer_Host-.msi" /YĬopy "\\\TeamViewer\TeamViewer_Assignment.exe" "C:\\TeamViewer_Assignment.exe" /YĬopy "\\\TeamViewer\TV.reg" "C:\\TV.reg" /Y

You can push out this batch file via Group Policy as a runonce (You will need to store the files on a FileShare. For others, you can set the Remote Computer to use a static password that you can store in the Properties in the Computers and Contacts for the device.
.png)
That account will not need the password to be set in order to connect to it. Easy access is basically assigning it to 1 specific account.
