-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzoom_remediation.sh
More file actions
33 lines (22 loc) · 988 Bytes
/
zoom_remediation.sh
File metadata and controls
33 lines (22 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
killall ZoomOpener
killall RingCentralOpener
defaults write /Library/Preferences/us.zoom.config.plist ZDisableVideo 1
# Loop start
for targetFolder in `ls /Users | grep -v Shared | grep -v Guest | grep -v .localized | grep -v .DS_Store | grep "[A-z 0-9]"`; do
if [[ -d /Users/$targetFolder/.zoomus/ ]]; then
rm -Rf /Users/$targetFolder/.zoomus/
# Remove ZoomOpener folder
fi
touch /Users/$targetFolder/.zoomus
chmod 000 /Users/$targetFolder/.zoomus
# Create flat file to prevent reinstallation
if [[ -d /Users/$targetFolder/.ringcentralopener/ ]]; then
rm -Rf /Users/$targetFolder/.ringcentralopener/
# Remove RingCentralOpener folder
fi
touch /Users/$targetFolder/.ringcentralopener
chmod 000 /Users/$targetFolder/.ringcentralopener
# Create flat file to prevent reinstallation
done
exit 0