-
-
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.' |
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!
I'm glad it helped.