Skip to content

Instantly share code, notes, and snippets.

@Sjeanpierre
Created April 30, 2018 21:48
Show Gist options
  • Save Sjeanpierre/d8b89252a94da9c218daf3c57bff979d to your computer and use it in GitHub Desktop.
Save Sjeanpierre/d8b89252a94da9c218daf3c57bff979d to your computer and use it in GitHub Desktop.
If your Skype for Business Installation on Mac OS keeps crashing on startup run the following.
#!/usr/bin/env bash
set -e
echo "Waring, this script will remove chat history and prefrences from Skype for Business"
read -p "Press enter to continue"
current_user=`whoami`
#going into directory where app stuff is stored
cd /users/$current_user/library
pwd
tmp=bku-$(date +%Y-%m-%d_%H-%M-%S)/
tmp_dir=/tmp/$tmp
mkdir -p $tmp_dir
echo "Backing up files to $tmp_dir"
cp -R ./Containers/com.microsoft.SkypeForBusiness $tmp_dir || true
cp -R ./Internet\ Plug-Ins/MeetingJoinPlugin.plugin $tmp_dir || true
cp -R ./Logs/LwaTracing $tmp_dir || true
cp -R ./Saved\ Application\ State/com.microsoft.SkypeForBusiness.savedState $tmp_dir || true
cp -R ./Preferences/com.microsoft.skypeforbusiness.plugin.plist $tmp_dir || true
echo "Removing Skype files"
rm -rf ./Containers/com.microsoft.SkypeForBusiness
rm -rf ./Internet\ Plug-Ins/MeetingJoinPlugin.plugin
rm -rf ./Logs/LwaTracing
rm -rf ./Saved\ Application\ State/com.microsoft.SkypeForBusiness.savedState
rm -rf ./Preferences/com.microsoft.skypeforbusiness.plugin.plist
echo "Done, 🤓"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment