Last active
November 8, 2024 22:31
-
-
Save dongri/0735e9a852093cf83212092e3fe40983 to your computer and use it in GitHub Desktop.
uninstall netskope
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 | |
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.' |
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.
My apologies for but not being clearer; if one has local admin access this
script (when run locally via terminal) completely removes NetSkope without
the need for a NetSkope uninstall password.
On Thu, Apr 6, 2023 at 5:00 PM Daniel Brum ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
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.
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/dongri/0735e9a852093cf83212092e3fe40983#gistcomment-4529130>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIO453Y6GB4HJMWEUBA25DW75KIFBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA4TOMJVGM2TINNHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
--
Chad Jones
***@***.***
Inline image
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!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@dmorgangg You'll have to ask your system administrator for the password.