1
1
I read in this question that powershell.exe
needs to be added to the list of Windows Defender exclusions to run faster. That seems a little coarse-grained.
Is there a way to make sure that only certain scripts are skipped being checked by Windows Defender, and not anything that is run from powershell.exe?
Are (self?)signed scripts skipped by Windows Defender? Can I add my own scripts to a trusted list of scripts, so Windows Defender doesn't slow those down?
Sorry if this question sounds bad; really I just want my
.lnk
s to run faster when I press a shortcut key in Windows to run them...there seems to be this massive delay after I press the shortcut keys. – leeand00 – 2019-05-05T07:19:08.1871You can exclude directories. Have you tried that? – Ramhound – 2019-05-05T07:56:02.870
@Ramhound You mean directories of scripts? And then it will skip checking those? Thus making them run faster? – leeand00 – 2019-05-05T07:57:32.867
Yes; You can add exclusion folders; if it will be faster entirely depends on if it’s actually Windows Defender causing the slow down. – Ramhound – 2019-05-05T08:48:01.137
@Ramhound But Windows Defender is excluding powershell.exe in the question, does that mean the script still gets scanned? – leeand00 – 2019-05-05T23:09:45.863
Just adding an alternative approach. You could try loading a script that remains open, always listening for your keyboard shortcuts. My assumption is that Windows Defender only scans the script when it is launched. Depending on your situation, maybe you eat this scan period when the script is initially launched and then not experience the delay again since scripts have already been scanned. – root – 2019-05-06T12:26:56.293