Files
Alte_Skripte/aktuelle_Scripte/de.ing.Skype_for_Businnes_Reset 2.sh
Andreas Vogel 306149a726 test
2026-02-16 15:28:29 +01:00

36 lines
2.0 KiB
Bash

#!/bin/bash
##########################################################################
# Shellscript : Reset Skype for Business
# Autor : Andreas Vogel, macenterprise gmbh,
# Source : https://docs.microsoft.com/de-de/SkypeForBusiness/troubleshoot/server-install-or-uninstall/clean-uninstallation
# Description : Das Script löscht nur die .plist sowie die im Schlüsselbund gespeicherten Passwörter.
# Die App bleibt weiterhin erhalten.
##########################################################################
# Gets username
user=$(stat -f '%u %Su' /dev/console | cut -d ' ' -f 2)
# Close Skype for Businnes if run
if ( pgrep "Skype for Business" > /dev/null ); then
echo "Killing Skype for Business"
killall "Skype for Business"
else
echo "Skype for Business is not running"
fi
# Remove plist and fils for Skype fpr Businnes
rm -rfv /Users/$user/Library/Preferences/com.microsoft.SkypeForBusinessTAP.plist
rm -rfv /Users/$user/Library/Logs/com.microsoft.SkypeForBusinessTAP
rm -rfv /Users/$user/Library/Application\ Support/Skype\ for\ Business
rm -rfv /Users/$user/Library/Containers/com.microsoft.SkypeForBusiness
rm -rfv /Users/$user/Library/Application\ Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.skypeforbusinesstap.sfl
rm -rfv /Users/$user/Library/Application\ Support/com.microsoft.SkypeForBusinessTAP
rm -rfv /Users/$user/Library/Cookies/com.microsoft.SkypeForBusinessTAP.binarycookies
# Remove Keychain Items
security delete-generic-password -l "Skype for Business" /Users/$user/Library/Keychains/login.keychain
# security delete-generic-password -l "com.microsoft.SkypeForBusiness.HockeySDK" /Users/$user/Library/Keychains/login.keychain
# security delete-generic-password -l "com.microsoft.SkypeForBusinessTAP.HockeySDK" /Users/$user/Library/Keychains/login.keychain
# security delete-generic-password -l "com.microsoft.skypeforbusiness.webmeetings.HockeySDK" /Users/$user/Library/Keychains/login.keychain