Created
April 30, 2018 21:48
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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