add defender exclusion
This commit is contained in:
parent
29bf948654
commit
ca06abb5c8
1 changed files with 2 additions and 0 deletions
|
@ -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 || (
|
||||
|
|
Loading…
Reference in a new issue