Skip to main content

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

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"

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