how to fix teamviewer script assignment or call another script upon my script exit

N30
New Contributor III

Hi All,

I have a script that i use to mass deploy teamviewer host using Jamf. The only problem with my script is that it sometimes do not do the account assignment and enroll the teamviewer host. 

I am thinking this is because of the last lines in my code. 

Can someone suggest how do i fix this?

Or i am thinking of creating another policies in jamf that will run upon completion of this script/policy and then run a script that basically run the last line of my code. 

1 REPLY 1

N30
New Contributor III

Teamviewerscript.jpg