Skip to content

Instantly share code, notes, and snippets.

View tyutyunkov's full-sized avatar

Viacheslav Tyutyunkov tyutyunkov

View GitHub Profile
#!/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"