NGMsoftware

NGMsoftware
로그인 회원가입
  • 매뉴얼
  • 학습
  • 매뉴얼

    학습


    기타 윈도우 디펜더를 꺼주는 배치 파일 만들기. (Create a batch file to disable windows defend…

    페이지 정보

    본문

    안녕하세요. 엔지엠소프트웨어입니다. 간단하게 배치 파일(*.bat)을 실행해서 윈도우 디펜더를 끄는 스크립트입니다.

    @echo off
    
    echo 디펜더 끄기
    
    sc config Sense start= disabled > NUL 2>&1
    net stop Sense > NUL 2>&1
    sc config WdFilter start= disabled > NUL 2>&1
    net stop WdFilter > NUL 2>&1
    sc config WdNisSvc start= disabled > NUL 2>&1
    net stop WdNisSvc Track > NUL 2>&1
    sc config WinDefend start= disabled > NUL 2>&1
    net stop WinDefend > NUL 2>&1
    reg add "HKLM\System\CurrentControlSet\Services\Sense" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1
    reg add "HKLM\System\CurrentControlSet\Services\WdFilter" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1
    reg add "HKLM\System\CurrentControlSet\Services\WdNisSvc" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1
    reg add "HKLM\System\CurrentControlSet\Services\WinDefend" /v "Start" /t REG_DWORD /d "4" /f > NUL 2>&1
    
    schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable > NUL 2>&1
    schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable > NUL 2>&1
    schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable > NUL 2>&1
    schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable > NUL 2>&1
    
    reg delete "HKLM\Software\Policies\Microsoft\Windows Defender" /f > NUL 2>&1
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d 1 /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d 1 /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d 1 /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRealtimeMonitoring" /t REG_DWORD /d 1 /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d 1 /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Reporting" /v "DisableEnhancedNotifications" /t REG_DWORD /d 1 /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SpyNet" /v "SpynetReporting" /t REG_DWORD /d 0 /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SpyNet" /v "SubmitSamplesConsent" /t REG_DWORD /d 0 /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender\MpEngine" /v "MpEnablePus" /t REG_DWORD /d 0 /f
    reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "WindowsDefender" /f > NUL 2>&1
    
    echo UAC (사용자 계정 콘트롤)
    
    UserAccountControlSettings.exe
    PAUSE
    exit

     

    위 내용을 복사한 후 메모장 또는 텍스트 편집기에 붙여넣기 해줍니다. 그리고 바탕화면에 "Defender Off.bat"로 저장하세요. 실행하면 윈도우 디펜더가 사용 안함으로 변경됩니다. 참고로, 레지스트리를 수정하는건 컴퓨터에 문제를 발생시킬 수 있습니다. 특별히 자동화 해야 할 필요가 없다면, 직접 디펜더를 끄고 사용하시면 됩니다.

    86JxxUD.png

     

     

    개발자에게 후원하기

    MGtdv7r.png

     

    추천, 구독, 홍보 꼭~ 부탁드립니다.

    여러분의 후원이 빠른 귀농을 가능하게 해줍니다~ 답답한 도시를 벗어나 귀농하고 싶은 개발자~

    감사합니다~

    • 네이버 공유하기
    • 페이스북 공유하기
    • 트위터 공유하기
    • 카카오스토리 공유하기
    추천0 비추천0

    댓글목록

    등록된 댓글이 없습니다.