add defender exclusion

This commit is contained in:
Mylloon 2024-10-28 18:47:46 +01:00
parent 29bf948654
commit ca06abb5c8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -34,6 +34,8 @@ fltmc >NUL 2>&1 || (
:: Use already downloaded script
ECHO Y| CMD /c "!local!\blockthespot.bat" yes
PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
:: Defender exclusion
PowerShell -Command "Add-MpPreference -ExclusionPath '%APPDATA%\Spotify'"
:: Start as administrator
PowerShell Start -Verb RunAs "%0 noskipadmin" 2>NUL || (