Page 1 of 1

Shortcut to Defender Real-Time protection dialog?

Posted: 25 Apr 2024, 23:36
by Atari800XL
I would rather turn off Defender completely, or even remove it from the system (like I did with older Windows versions until now, even remove it from install.wim), but I believe we all have to accept it now, and turning it off/ removing it in Windows 11 is becoming more and more difficult anyway.

So at least I would like an Autohotkey direct shortcut to the "Real-Time protection" dialog, so I can turn it on and off (temporarily?) with the space bar.

Who would be so kind to provide us with a direct link to this page? I can't seem to find it, didn't we use to have the long direct links to Control Panel sub items?

Thank you and have a nice day!

Re: Shortcut to Defender Real-Time protection dialog?

Posted: 26 Apr 2024, 01:58
by Rohwedder
Hallo,
try (only tested with Windows 10):

Code: Select all

#Requires AutoHotkey v2.0
q::Run "shell:::{4026492F-2F69-46B8-B9BF-5654FC07E423}"
https://www.autohotkey.com/docs/v2/misc/CLSID-List.htm

Re: Shortcut to Defender Real-Time protection dialog?

Posted: 26 Apr 2024, 08:47
by Atari800XL
Thanks, that opens "Windows Firewall"

I'm looking for a shortcut to the Defender dialog that has the "Realtime protection" toggle switch.

Re: Shortcut to Defender Real-Time protection dialog?

Posted: 29 Apr 2024, 06:39
by vmech
@Atari800XL
There are too many bad practices. And all are unsuccessful.
Some CLSIDs retrieved from registry:
But you can use system's URI protocol.
Try code below:

Code: Select all

#Requires Autohotkey v2

Run('explorer.exe windowsdefender://Threat')	; 

WinWait('Windows Security ahk_class ApplicationFrameWindow'), WinWaitClose()

Run('explorer.exe windowsdefender://ThreatSettings')	;