Skip to main content
Solved

Lync First run (Accept SLT script)

  • February 25, 2016
  • 2 replies
  • 2 views

rqomsiya
Forum|alt.badge.img+12

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

Best answer by rqomsiya

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"

2 replies

rqomsiya
Forum|alt.badge.img+12
  • Author
  • Honored Contributor
  • Answer
  • February 25, 2016

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"

Forum|alt.badge.img+8
  • Contributor
  • February 25, 2016

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