Shortcut to Defender Real-Time protection dialog?

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Atari800XL
Posts: 27
Joined: 29 Apr 2016, 22:09

Shortcut to Defender Real-Time protection dialog?

Post by Atari800XL » 25 Apr 2024, 23:36

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!

Rohwedder
Posts: 7895
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Shortcut to Defender Real-Time protection dialog?

Post by Rohwedder » 26 Apr 2024, 01:58

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

Atari800XL
Posts: 27
Joined: 29 Apr 2016, 22:09

Re: Shortcut to Defender Real-Time protection dialog?

Post by Atari800XL » 26 Apr 2024, 08:47

Thanks, that opens "Windows Firewall"

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

vmech
Posts: 467
Joined: 25 Aug 2019, 13:03

Re: Shortcut to Defender Real-Time protection dialog?

Post by vmech » 29 Apr 2024, 06:39

@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')	; 
Please post your script code inside [code] ... [/code] block. Thank you.

Post Reply

Return to “Ask for Help (v2)”