Casper – Clear out user’s broken Keychain

Just realized that there are so many useful scripts from JAMF Nation, here is  a easy one you can deploy to Self Service to fix those annoying Keychain issues with AD…


If you are lazy to read, here is the script from the author:


current_user=`finger s l | grep Login | cut c 825`

if test e /Users/$current_user/library/keychains/????????-????-????-????-????????????; then

    echo “Local Items keychain found”

    rm rf /Users/$current_user/library/keychains/????????-????-????-????-????????????


    echo “No local items keychain found”

    exit 1


Leave a Comment