Last active
March 11, 2025 08:27
-
-
Save systemswizard/8a533cfb3dec60d351f86122f101a971 to your computer and use it in GitHub Desktop.
Uninstalls FortiClient and its components - Tested on FortiClient SSL Client 6.x-7.1.x
This file contains 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
#!/bin/sh | |
# macos-uninst-forticlient.sh | |
# https://gist.github.com/systemswizard | |
# Uninstalls FortiClient and its components - Tested on FortiClient SSL Client 6.x-7.1.x | |
pkill FortiClientAgent | |
launchctl unload /Library/LaunchDaemons/com.fortinet* | |
rm -Rfv /Applications/FortiClient.app | |
rm -Rfv /Applications/FortiClientUninstaller.app | |
rm -Rfv /Library/Application\ Support/Fortinet | |
rm -Rfv /Library/Internet\ Plug-Ins/FortiClient_SSLVPN_Plugin.bundle | |
rm -Rfv '/Library/LaunchDaemons/com.fortinet.*' | |
rm -Rfv '/Library/LaunchAgemts/com.fortinet.*' | |
localAccounts=$(dscl . list /Users UniqueID | awk '$2 > 500 { print $1 }') | |
for user in $localAccounts ; | |
do | |
rm -Rfv /Users/"$user"/Library/Application\ Support/Fortinet/ | |
rm -Rfv /Users/"$user"/Library/LaunchAgents/com.fortinet* | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment