Skip to content

Instantly share code, notes, and snippets.

@Sourav2005
Sourav2005 / windefenderdisable.md
Created January 30, 2022 05:32
Disable Windows Defender for good

Step 1

Disable Real time protection and all other protections in the Security Dashboard Settings.

image

Step 2

Edit Group Policy to disable Windows Defender. Search "Group Policy" in the start menu and hit enter. Navigate to Computer configuration -> Windows Components -> Microsoft Defender Antivirus -> Double Click Turn off Microsoft Defender Antivirus and set to Enabled.

image

@Sourav2005
Sourav2005 / boxstarter.ps1
Last active September 15, 2021 12:46
Install Windows 10 script with boxstarter
# Disable Windows Defender
$tools = 'D:\Tools'
Add-MpPreference -exclusionpath "$tools\dControl"
timeout 10 /nobreak
cmd /c "$tools\dControl\dControl.exe" /D
# Change Time Zone
cmd /c tzutil /s "India Standard Time"
# Better way to install winget