아래 스크립트를 batch 파일로 생성한다.


제외하고 싶은 폴더에 복사해 넣고 관리자 권한으로 실행한다.



WindowsDefenderExclusionPath.bat



: 현재폴더 가져오기
set curdir=%~dp0

: 생성된 현재폴더에서 맨 뒤에 \ 빼기
SET curdir=%curdir:~0,-1%

: Windows Defender에 제외 폴더 등록하기
powershell -Command Add-MpPreference -ExclusionPath "%curdir%"

pause









Posted by motolies
,