-
-
Save dongri/0735e9a852093cf83212092e3fe40983 to your computer and use it in GitHub Desktop.
#!/bin/sh | |
sudo ps aux | grep Netskope | grep -v grep | awk '{ print "kill -9", $2 }' | sudo sh | |
echo '[✓] Kill Netskope Process' | |
sudo rm -rf /Applications/Remove\ Netskope\ Client.app | |
echo '[✓] Removed Remove Netskope Client.app' | |
sudo rm -rf /Library/Application\ Support/Netskope | |
echo '[✓] Removed Agent of Netskope Client.app' | |
echo 'Successfully uninstalled.' |
Wanted to mention that for Big Sur on Mac this did not do an uninstall, but did disable Netskope, which is what I was mainly looking for 👍 Previous kill commands for older OS were not longer working on Big Sur, but this did the trick.
I'm glad it helped.
Do you know what parameter to add if an uninstall password is required?
@dmorgangg You'll have to ask your system administrator for the password.
Thanks for this awesome script! Has truly helped me when I've been unable to blow away Netskope when needed. Have made a couple of changes which allows the software to be removed regardless of whether one has the uninstall password or not:
- Changed the line: sudo rm -rf /Library/Application\ Support/Netskope/ to include an asterisk ( * ) at the end.
- Added: echo "Y" | sudo rm -rf /Applications/Netskope\ Client.app at the end of the script (this won't run until the related services are killed).
This totally blows away Netskope allowing me to reinstall clean.
how can this be used without being prompted for the sudo password? Netskope will just be pushed down after a few hours for example and want to schedule this script to be run say every hour in case it shows up again.
Thanks for this awesome script! Has truly helped me when I've been unable to blow away Netskope when needed. Have made a couple of changes which allows the software to be removed regardless of whether one has the uninstall password or not:
- Changed the line: sudo rm -rf /Library/Application\ Support/Netskope/ to include an asterisk ( * ) at the end.
- Added: echo "Y" | sudo rm -rf /Applications/Netskope\ Client.app at the end of the script (this won't run until the related services are killed).
This totally blows away Netskope allowing me to reinstall clean.
This works for me, thanks!
Updated