Skip to content

Instantly share code, notes, and snippets.

@mark-hallman
Created December 28, 2019 21:29
Show Gist options
  • Select an option

  • Save mark-hallman/8529c2e097ec880748a12c477fca0f31 to your computer and use it in GitHub Desktop.

Select an option

Save mark-hallman/8529c2e097ec880748a12c477fca0f31 to your computer and use it in GitHub Desktop.
Stop the "Windows Defender Antivirus Service" from running at startup
Get-Item -Path "HKLM:\Software\Policies\Microsoft\Windows Defender\" | New-ItemProperty -Name DisableAntiSpyware -Value 1
@mark-hallman
Copy link
Author

I can't seem to stop the "Windows Defender Antivirus Service" from running via services.msc, Stop-Service, etc. but I can prevent if from starting after reboot.

Adding this reg key will stop the "Windows Defender Antivirus Service" from running at startup. This PS one-liner will add the key. After adding the key, reboot and the service should be stopped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment