Posted by Heartland
Henagon

Command line assign new host to group with space in its name

I've taken over Teamviewer deployment from someone that left the company.  He deployed Teamviewer 12 and used TeamViewer_assignment.exe to assign hosts to groups.  I'm working on a Teamviewer 14 upgrade and see that can be done in the command line now with --group switch.  This works, but my problem is my groups have spaces in the names, so when I use ASSIGNMENTOPTIONS="--group 'Group A'" a new 'Group group is created, and the new host is placed there.  If I use double quotes (ASSIGNMENTOPTIONS="--group "Group A""), msiexec complains about the syntax.  Is there a way to use the --group switch to assign hosts to a group whose name contains a space?

 

Thanks!

2 Replies
2 Accepted Solutions

Accepted Solutions
Posted by Moderator Moderator
Moderator
Solution

Re: Command line assign new host to group with space in its name

Hello @Heartland,

Thank you for your message.

If you have parameter values with blanks (e.g. for the group name) use two double quotes (not single double quotes!) to frame them.

You will find all the information you need in our Knowledge Base article here: Help for assignment options

I hope this could help. If not, do not hesitate to ask your questions here.

Cheers

Jean

French Community Moderator
Did my reply answer your question ? Accept it as a solution to help others.
Find this helpful ? Say thanks by clicking on the Thumbs Up button.
Posted by Heartland
Henagon
Solution

Re: Command line assign new host to group with space in its name

I has been following that doc but didn't see the part about using double quotes.  Thanks for your help!

2 Replies
Posted by Moderator Moderator
Moderator
Solution

Re: Command line assign new host to group with space in its name

Hello @Heartland,

Thank you for your message.

If you have parameter values with blanks (e.g. for the group name) use two double quotes (not single double quotes!) to frame them.

You will find all the information you need in our Knowledge Base article here: Help for assignment options

I hope this could help. If not, do not hesitate to ask your questions here.

Cheers

Jean

French Community Moderator
Did my reply answer your question ? Accept it as a solution to help others.
Find this helpful ? Say thanks by clicking on the Thumbs Up button.
Posted by Heartland
Henagon
Solution

Re: Command line assign new host to group with space in its name

I has been following that doc but didn't see the part about using double quotes.  Thanks for your help!