Last active
June 18, 2022 11:58
-
-
Save max-potapov/1996a7242320c7b97f486d877fdb3825 to your computer and use it in GitHub Desktop.
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 | |
pushd /Applications/Microsoft\ Defender.app/Contents/MacOS/ | |
sudo chmod -x * | |
pushd /Library/Managed\ Preferences/ | |
# TODO: update to new location | |
sudo su root -c "plutil -replace antivirusEngine.passiveMode -bool true com.microsoft.wdav.plist" | |
sudo su root -c "plutil -replace antivirusEngine.enableRealTimeProtection -bool false com.microsoft.wdav.plist" | |
pushd $(whoami) | |
# TODO: update to new location | |
sudo su root -c "plutil -replace antivirusEngine.passiveMode -bool true com.microsoft.wdav.plist" | |
sudo su root -c "plutil -replace antivirusEngine.enableRealTimeProtection -bool false com.microsoft.wdav.plist" | |
popd | |
popd | |
popd | |
pushd /Library/LaunchDaemons | |
sudo launchctl unload -w com.microsoft.fresno.plist | |
popd | |
pushd /Library/LaunchAgents | |
launchctl unload -w com.microsoft.wdav.tray.plist | |
popd | |
sudo pkill -9 'wdav*' | |
sudo killall -9 epsext | |
# iBoss disabling | |
cd /Library/LaunchDaemons | |
sudo launchctl unload -w com.iboss.networkchange.plist | |
sudo launchctl unload -w com.iboss.gen4agent.plist | |
echo 'Feel free to disable proxy in Wi-Fi settings' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
replace 18 line with
sudo pkill -9 'wdav*'