Microsoft lync keychain password pop-ups

Issue reported with fix Here and Here.



This issue is old and have been posted on many blogs, but i faced this issue first time with some of my users, not one or two. So i decided to create a script and made it available for users to use it if they are experiencing this problem.

Scrip:


#!/bin/sh

#  lync_keychain.sh
#  
#
#  Created by Gupta, Ashish.
#

#
#### Set login user account variable to get the details.
#
#

user=`ls -l /dev/console | awk '{print $3}'` # Gets the current user
lync=`pgrep Microsoft\ Lync | awk '{print $1}'` # Gets the PPID of the Microsoft Lync

#
#### Set function to verify the file first and then close the lync and delete the file.
#
#

if [[ -e /Users/$user/Library/Keychains/OC_KeyContainer__$user@lync.cvent.com ]]
then
kill $lync
rm -rf /Users/$user/Library/Keychains/OC_KeyContainer__$user@lync.cvent.com
else
echo "File doesn't exist."
fi

#
#### Exit
#
#

exit 0

0 comments:

Post a Comment