Lync First run (Accept SLT script)

rqomsiya
Contributor III

Hi All,

Stuck on the following. Anyone have any ideas of why its not making the edits on the .plist? Any feedback would be greatly appreciated! Thanks guys!

#!/bin/bash

user=$( ls -l /dev/console | awk '{print $3}' )

defaults write /$user/Library/Preferences/com.microsoft.Lync acceptedSLT143 -bool true
defaults write /$user/Library/Preferences/com.microsoft.Lync UserHasRunMessenger143 -bool true
1 ACCEPTED SOLUTION

rqomsiya
Contributor III

figured it out....

#!/bin/bash

user=$( ls -l /dev/console | awk '{print $3}' )

su $user -c "defaults write ~/Library/Preferences/com.microsoft.Lync acceptedSLT143 -bool true"
su $user -c "defaults write ~/Library/Preferences/com.microsoft.Lync UserHasRunMessenger143 -bool true"

View solution in original post

2 REPLIES 2

rqomsiya
Contributor III

figured it out....

#!/bin/bash

user=$( ls -l /dev/console | awk '{print $3}' )

su $user -c "defaults write ~/Library/Preferences/com.microsoft.Lync acceptedSLT143 -bool true"
su $user -c "defaults write ~/Library/Preferences/com.microsoft.Lync UserHasRunMessenger143 -bool true"

mlavine
Contributor

Administrating Lync - http://www.officeformachelp.com/lync/administration/