Created
July 9, 2019 17:48
-
-
Save ygini/f395d33f890fa298cd17fd809bba6b28 to your computer and use it in GitHub Desktop.
Sample script to mass kill Zoom on all kind of macOS used in enterprise
This file contains hidden or 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/bash | |
killall ZoomOpener | |
while read homeFolder | |
do | |
if [ -d "$homeFolder/.zoomus" ] | |
then | |
rm -rf "$homeFolder/.zoomus" | |
touch "$homeFolder/.zoomus" | |
fi | |
done < <(dscl /Search list /Users NFSHomeDirectory | cut -d' ' -f 2- | sed -e 's/[[:space:]]*$//' | sed -e 's/^[[:space:]]*//' | sort | uniq) | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment