Xink install/configure using Jamf

cwyman_cs
New Contributor

My company is rolling out an email signature application called Xink to all users. Has anyone had any success with this product or have any tips on its rollout? Xink Support sent me to this link for instructions but unfortunately the (very complicated) script they say works with other customers does not work with our hybrid Exchange/O365 environment.

I can use the "defaults" commands to manually update the .plist file for the app but running the same commands in a Jamf script using Self Service doesn't seem to work. I will admit that I'm just barely more than a novice when it comes to setting up scripts from scratch. I'm usually pretty good at figuring out existing ones and modifying them.

Below is my existing script. Perhaps someone can show me where I'm going wrong? I'm sure I'm missing something simple. - Chad



#!/bin/sh

defaults write com.emailsignature.Xink isUsingICloudDrive -int 1
defaults write com.emailsignature.Xink updateSignaturesForMai -int 0
defaults write com.emailsignature.Xink updateSignaturesForOutlook -int 1

# using the Jamf variable for currently logged-in user, append email domain
defaults write com.emailsignature.Xink userName -string "$3@mydomain.com"
defaults write com.emailsignature.Xink domainToken -string "[domain token]"

2 REPLIES 2

slundy
New Contributor III

I have the same question.  I found the Signin Helper script that xink recommends, but not sure how to use it.  You can find it here: https://github.com/pbowden-msft/SignInHelper

Let me know if you've found anything, I'll do the same.

scottwhunt
New Contributor
#!/bin/sh

currentUser=$(ls -l /dev/console | awk '/ / { print $3 }')
jamfConnectStateLocation=/Users/$currentUser/Library/Preferences/com.jamf.connect.state.plist
DisplayName=$(/usr/libexec/PlistBuddy -c "Print :DisplayName" $jamfConnectStateLocation || echo "Does not exist")
Token="[Your domain token]"

if [[ $DisplayName != "File Doesn't Exist"* ]]; then
sudo -u $currentUser /usr/bin/defaults write /Users/$currentUser/Library/Preferences/com.emailsignature.Xink.plist hideInfobox -bool true
sudo -u $currentUser /usr/bin/defaults write /Users/$currentUser/Library/Preferences/com.emailsignature.Xink.plist hideQuitMailInfobox -bool true
sudo -u $currentUser /usr/bin/defaults write /Users/$currentUser/Library/Preferences/com.emailsignature.Xink.plist isUsingICloudDrive -bool false
sudo -u $currentUser /usr/bin/defaults write /Users/$currentUser/Library/Preferences/com.emailsignature.Xink.plist updateSignaturesAutomatically -bool true
sudo -u $currentUser /usr/bin/defaults write /Users/$currentUser/Library/Preferences/com.emailsignature.Xink.plist updateSignaturesForMail -bool false
sudo -u $currentUser /usr/bin/defaults write /Users/$currentUser/Library/Preferences/com.emailsignature.Xink.plist updateSignaturesForOutlook -bool true
sudo -u $currentUser /usr/bin/defaults write /Users/$currentUser/Library/Preferences/com.emailsignature.Xink.plist userName $DisplayName
sudo -u $currentUser /usr/bin/defaults write /Users/$currentUser/Library/Preferences/com.emailsignature.Xink.plist domainToken -string $Token

else
echo "Invalid Username - Possibly Local Only Account"
fi
exit 0

This is what I came up with for version 3.2.8.

Probably no help to you now but hopefully someone can make use of it!