I deploy a teamviewer host client , but have assignment message need to acept by manual, can I automatic allow this ?
Hi @NGPIT,
Sorry, we didn't clarify this in the first place.
Indeed, deployment capabilities are only available for Corporate license holders.
Correct, in this scenario, the .exe cannot be used.
We thank you in advance for your understanding.
/JeanK
Hello @NGPIT and a big welcome to the TeamViewer Community family!
We recommend following our Mass deployment on Windows - User guide.
In step 9, you'll find the command line we recommend using:
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
The /qn parameter will ensure that no assignment confirmation message will pop up.
Let me know if this has worked for you!
I have packaged the custom module Host MSI that I downloaded from Teamviewer Full Desktop > Admin Settings > Custom Modules.
I packaged it as a Win32 Intune package along with a BAT file (command below), with my customconfigid and apitoken.
@echo off start /wait MSIEXEC.EXE /i "%~dp0\TeamViewer_Host.msi" /qn CUSTOMCONFIGID=[My_CustomConfig] APITOKEN=[My_APIToken] ASSIGNMENTOPTIONS="—alias %COMPUTERNAME%_%USERNAME% --reassign --group UK-Computers" DESKTOPSHORTCUTS=0 AUTOACCEPT=1 /L*v C:\Temp\TVHostCompInstall.log
It installs fine, the config is listed in logs and is saved in the Teamviewer install folder (C:\Program Files\Teamviewer), but it does not appear in management console.
I need to terminate the running Teamviewer task on the device, re-run it with an account that has local admin privileges. The device then appears in my management console. This is the ONLY way I can get devices to appear in my console if I push out the app via Intune.
This is crazy stupid, Teamviewer please sort this out, it's literally been happening for years.
@TeamMngr I'm glad you could fix this by adding an extra restart. 🙂
Also, thank you so much for sharing your solution with the community!
Hope to see you posting here soon,
OK.
For the next install/upgrade test, I added an extra restart, and also let the computer sit a bit longer.
The message did not display.
So, just wait a bit longer and you won't get it :)
We IT folk can be a bit impatient sometimes.
More information.
I only get that additional window when I sign in as Local Admin and open the Host application.
I do not get it when I sign in as a standard domain user.
Interestingly, it says the machine has easy access for 5 managers - great. It says it belongs to an organisation. But it does not say it is assigned to an account.
Is that normal?
I do seem to have easy access control to it, but I assumed it would be assigned to an account.
I'm using this method in the batch file: "C:\Program Files\TeamViewer\TeamViewer.exe" assignment --id <MY_ID> --device-alias=%ComputerName%"
Hi @JeanK .
Regarding this.
I am getting the same behaviour, and I can assure you I am using /qn for the install.
And indeed, the install is silent and respecting the /qn switch, but when the customer opens the remote support app for the first time, that is when we see the prompt to confirm the company assignment.
Is there an option in the policy that can stop it from appearing?
Additionally, this used to work with the old script (using the API). It seems the new script behaves differently.
The above is my teamviewer host (choose your policy in the dropdown)
These are my commands in intune:
Install command powershell.exe -ExecutionPolicy Bypass -File .\install_teamviewer.ps1 Uninstall command msiexec /x "{PRODUCT_ID}" /qn
Install command powershell.exe -ExecutionPolicy Bypass -File .\install_teamviewer.ps1
Uninstall command msiexec /x "{PRODUCT_ID}" /qn
install_teamviewer.ps1 has the above mentioned code in it. it's packed with intune prep tool.
$currentDirectory = Get-Location msiexec /i "$currentDirectory\TeamViewer_Host.msi" /qn APITOKEN="API_TOKEN" CUSTOMCONFIGID="CFG_ID" ASSIGNMENTOPTIONS="--grant-easy-access"
prep tool:
.\IntuneWinAppUtil.exe -c path\to\source\ -s path\to\teamviewer_host.msi -o path\to\output\
Huh, that's not good we get the popup like that… Which settings are you doing in the backend? Our command in Intune is: msiexec /i "TeamViewer_Host.msi" /qn CUSTOMCONFIGID=<ID> APITOKEN=<API_TOKEN> ASSIGNMENTOPTIONS="--grant-easy-access"
True. My clients are manageable as of now but I'll be coming back to this thread some day I believe 😂
So that was just the solution that worked for me and I shared it :) I don't know which one is "better" or "more sensible", but it led me to my goal. 😚
That's a new one for me bud… if it works for you, then keep doing it! Personally, I think creating multiple variables in a script only guarantees that you will have multiple scripts / prompts to use when running it for various situations… This may be fine for you, but I needed a way to do mass installs and only make minimal changes when updates occur.
I went back to using API Tokens without the "Managed Group Assignment". It works well for me using this:
I don't want to step on @FlorianO93 's toes, but I feel like my script gets the job done a little better…
I'm using Intune, but the scripts can be used individually / manually too… go through it and let me know how it goes for you… I have TeamViewer installing silently and updating into the correct groups without any user input. So far, so good.
I've tried your script and it's not fixing the issue:
First of all, this line needs to be fixed:
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i "$TeamViewerHost" /quiet /norestart CUSTOMCONFIGID=$TeamViewerCustomConfigID" -Wait -NoNewWindow
It still asks to "Accept and Finish" ("Zulassen und Fertig stellen")
Also, in my case it's not assigning the computer to the group and easy/unattended access also needs to be manually configured. What's going on?
Are you making two different options? One with ConfigID and one without?
Install TeamViewer Host Write-Output "Installing TeamViewer Host..."
#Start-Process -FilePath "msiexec.exe" -ArgumentList "/i "$TeamViewerHost" /quiet /norestart" -Wait -NoNewWindow
I see the first one is commented out, but this can be confusing for someone who may not know what they are looking at
Hi @Metisak,
You should get the assignment ID from the "Rollout set-up" menu:
It looks like "0004CoHRChDj44qAJ7kR76FVkAVnlRS4EigIACAAAgAJAD05CYhz_bauIxw8Htn9MVB5Yrjj4hA93I4X5c5wwh9IGkAAAgojXYZss4ZHX4TwSHAPbFIikDjGHjnA0YTfcOhN4X8WMsRW4J57WKpp2sU3btBeZJ6bw1Aj0oL9KZ1JmJFuIAEQyLfNuQM=" I hope this helps you!
Hello @Mykyta_Makovetskyi, i am trying same as you. Installation of EXE is okay, silent etc all good. But assigment is not working as expected i think. We have just Premium license. In our portal there is no visible assigment ID but i think it is visible in weblink of assigment policy edit. Could you just confirm for me, that ID is in format - 8digitis-4digits-4digits-4digits-12digits so i am looking for right parametr?
i also dont have option to select "roll-out setup to "None"" in my portal :/ is it still think of license topic?
Quite normally from our TeamViewer Admin Portal under “Rollout configuration”. I should perhaps add that we have a Tensor Basic subscription.
Where did you get .MSI installer?
The following solution has now worked completely for me and I have adopted it in my Intune installation routine. The installation is carried out via a PowerShell script:
$TeamViewerHost = ".\TeamViewer_Host.msi" $TeamViewerCustomConfigID = "XXXXXX" $TeamViewerAssignmentID = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Write-Output "Installing TeamViewer Host..." #Start-Process -FilePath "msiexec.exe" -ArgumentList "/i "$TeamViewerHost" /quiet /norestart" -Wait -NoNewWindow
"$TeamViewerHost
Write-Output "Wait 30 seconds to ensure that the installation is complete." Start-Sleep -Seconds 30
if (Test-Path "$env:ProgramFiles\TeamViewer\TeamViewer.exe") { Write-Output "TeamViewer installed successfully."
# TeamViewer rollout configuration Write-Output "Configuring TeamViewer Host with Config ID: $TeamViewerAssignmentID" Start-Process "$env:ProgramFiles\TeamViewer\TeamViewer.exe" -ArgumentList "assignment --id $TeamViewerAssignmentID" -Wait -NoNewWindow Write-Output "TeamViewer Host configuration successfull."
} else {
Write-Output "TeamViewer Host configuration failed."
}
Yeah, silent installation and assignment are everyone's goals here)) And it's justifiable for such a product I think. Ok, to clarify: yes, my custom module TV Host installer is renamed to "TeamViewer_Host_Setup NO ROLLOUT.exe" and is located in the same folder as my script. I did check this approach on two computers and it seems to work.
@Mykyta_Makovetskyi So the script you shared doesn't work for me. The installation doesn't even run silently and I have to press everything.
My goal is that the installation and the assignment of the rollout configuration runs completely automatically and the device is then simply in the TeamViewer device list.
I believe the file name doesn't matter.
When installing with the given .MSI package I had some issues, though now can't remember what exactly. Also, I think .MSI was installing outdated TeamViewer so I suppose it's outdated.
@Mykyta_Makovetskyi Thank you for your answer. ☺️
I have one question: Did you really just name the TeamViewerHost.exe file “”TeamViewer_Host_Setup NO ROLLOUT.exe” and run it? Is the naming of the EXE file really important? I would have expected it to be in an installation parameter? I would have distributed the application with the .MSI packages and the link to the custom module. Is that not possible or where is the problem? the .MSI or the custom module?
Greetings to everyone. First of all, I must say that this situation is very frustrating. The lack of correct documentation and non-reliable silent mass deployment process is unacceptable.
I was able to install a custom module host successfully silently and decided to share the info with you. Probably it is noteworthy that I have a "Commercial" license and installing for Windows. Here are my actions:
"TeamViewer_Host_Setup NO ROLLOUT.exe" /S timeout /t 20 /nobreak "C:\Program Files (x86)\TeamViewer\TeamViewer.exe" assignment --id _myid_
Dear TeamViewer Support Team,
I want to deploy the TeamViewer Host for unattended remote support on my Microsoft Teams Room systems (Windows 11) via Microsoft Intune.
The installation should be completely automatic on the device level without any subsequent intervention. After the installation, the device should be assigned to a TeamViewer device group so that authorized users can easily connect to the device.
I have created the script installation via Intune as described in the instructions. The .bat file executes the following during installation:
start /wait MSIEXEC.EXE /i "%~dp0\TeamViewer_Host.msi" /qn CUSTOMCONFIGID=***** timeout /t 30 /nobreak "C:\Program Files\TeamViewer\TeamViewer.exe" assignment --id **************
The software installs without any issues, but after the installation, it is still necessary to start/open the Host once and confirm the assignment. Only then does the device appear in the TeamViewer device management group. Since the devices are distributed and not on-site, someone always has to be there.
What is the solution to make everything run automatically so that I don't have to touch the device after installation and can simply access the device through the device group it is assigned to? Please support.
If you use Intune and use the command /qn CUSTOMCONFIGID=xxxxxx you would get the pop-up message and be required to accept it.
It would be nice if you could assign it with just the assignment ID after the customconfig.
Like; /qn CUSTOMCONFIGID=YOUR_CUSTOM_CONFIG_ID assignment --id YOUR_ASSIGNMENT_ID
We are facing the same issue and cannot find your additional configuration / select the Rollout configuration / 'None'.
Hi all,
I've talked with our engineers and come back with (hopefully) the solution. 🙂
When using the new interface and deploying TeamViewer via script, the rollout configuration in the module's settings must be set to None.
Please give it a try. You shouldn't see the pop-up; the installation should occur without user interaction.
Looking forward to hearing from you.
This is the command we are using:
start /wait MSIEXEC.EXE /i "Teamviewer_Host.msi" /qn CUSTOMCONFIGID=xxxxxx
It does have the /qn flag and we are getting the end user pop-up to "Allow and Finish or Cancel" when deploying.
I have checked the custom module and there are no settings for group assignment to untick.
@wsucppsits You don't need this toggle in the new web app https://web.teamviewer.com/.
You can define the assignments via the rollout configuration, as explained here:
📄 Create a rollout configuration - 6/10
Let me know if you have any further questions! I'll be happy to assist.