oliverschwendener / ueli

Cross-Platform Keystroke Launcher
https://ueli.app
MIT License
3.65k stars 241 forks source link

[Feature Request] Shortcut for Temporarily Deactivating Windows Defender #656

Open vsteenstratoussaint opened 3 years ago

vsteenstratoussaint commented 3 years ago

Hi everyone,

I'd like to create a shortcut for temporarily deactivating realtime protection in windows defender using ueli. I've tried a couple of different methods, using regedit and command prompt among other things.

I've tried running sc stop windefend for example (with administrator), but that seems to give the following error:

[SC] OpenService FAILED 5:
Access is denied.

Is there a quick way to create a shortcut for this task? Thanks in advance.

tkohlmeier commented 3 years ago

I assume you need admin rights to stop the service, which makes sense for an anti virus service.

Have you tried executing the command with ueli using Shift+Enter?