Tv_hostname="$(hostname -s) | $(id -P $(stat -f%Su /dev/console) | cut -d : -f 8)" Tv_assignmentHelper="/Applications/TeamViewerHost.app/Contents/Helpers/TeamViewer_Assignment" usr/sbin/installer -pkg "$downloadFilePath" -appl圜hoiceChangesXML "choices.xml" -target /Įcho "$(date): Run Teamviewer assignment" usr/bin/curl -location -silent -o "$downloadFilePath" "$downloadUrl"Įcho "$(date): Installing Teamviewer Host Application"Įcho "$(date). # change directory to temporary working directoryĮcho "Changing directory to working directory "$tempDirectory""Įcho "$(date): Downloading Teamviewer Host Application" TempDirectory=$( /usr/bin/mktemp -d "/private/tmp/$workDirectory.XXXXXX" )ĭownloadFilePath="TeamviewerHost-idc$tv_customID.pkg" # Parameter $5 = Teamviewer assignment API tokenĮcho "$(date): No teamviewer configuration id provided."Įcho "$(date): No teamviewer api token provided."Įcho "$(date): Creating working directory" # Parameter $4 = Teamviewer configuration ID # Provide configuration details via jamf parameter:# # Runs the TeamViewer Assignment Tool after the installation # Downloads and installs latest TeamViewer Host with custom configuration Is there a more reliable way to assign the device in TeamViewer? Sometimes it works, sometimes it does not. I have added a 'sleep' and increased the '-wait' parameter, both without success. The download and installation part works great, but the assignment isnt working reliable. I have a problem with my TeamViewer Installation script.
0 Comments
Leave a Reply. |