How to quickly enable/disable windows 10 (defender) antivirus?

4

1

I would like to be able to quickly enable/disable windows defender antivirus.
If you type 'Defender' in the search box (aka Cortana) you will see see a 'Windows Defender settings' item. How can I get a desktop shortcut to that program?

Ultralisk

Posted 2015-10-16T11:55:01.817

Reputation: 1 749

Alternatively, I am also interested in the WinAPI command or the registry they that will enable/disable Defender. I could build a small tool then. – Ultralisk – 2015-10-16T12:04:04.233

Hmm there's no ms-settings shortcut for Defender.. Probably for security reasons(?). if you need to disable/reenable Defender in a hurry, why not just toggle the service with SC or alike? – Ƭᴇcʜιᴇ007 – 2015-10-16T13:49:44.267

Answers

3

Follow these steps:

  1. Create a shortcut on the desktop.

  2. Open the shortcut properties and assign these values:

    • Target:

      "%WinDir%\Explorer.exe" "%LocalAppData%\Packages\windows.immersivecontrolpanel_cw5n1h2txyewy\LocalState\Indexed\Settings\en-US\AAA_SettingsPageWindowsDefender.settingcontent-ms"
      

      (Ensure to change "en-US" to your locale region code)

    • Working directory:

      %WinDir%
      
  3. Have fun!.


Here is a demo I made in my locale settings:

enter image description here

Note: Tested on Windows 10 build 10240 and 10565.


Alternatively, I am also interested in the WinAPI command or the registry they that will enable/disable Defender.

Theorically the WDEnable Win32 function could toggle the state of Windows Defender:

However, seems complicated because security reasons as pointed out in this question:

ElektroStudios

Posted 2015-10-16T11:55:01.817

Reputation: 1 282

-1

Open control panel, Right click on Windows Defender, select create shortcut.
It will pop a message saying it can not be created here would you like it on the desktop, select Yes.

mic84

Posted 2015-10-16T11:55:01.817

Reputation: 2 313

This will not create a link to the settings window. Only to the Defender main window. – Ultralisk – 2015-10-16T12:03:51.623