New
#1
Defender Update Signatures at Windows launch Hidden
Hi all!
Before Creator's Update (1709) i had a simple command line to update Defender signatures at boot
with task scheduler. And that was an all hidden task.
The reason for this is because I've set Windows into notification mode for updates, and it's
annoying to be notified of Defender signatures shortly after launch.
However, that old command line no longer works with Creator's Update, and i had a hard time
finding a solution without the ugly cmd window pop up.
But here's a trick to execute powershell.exe in a hidden state, hence it's a clean background task.
How:
Create a folder named scripts under the C: drive, (C:\Scripts)
Inside that folder create a textfile and name it Defender.ps1
Input only this one-liner into that textfile and save:
Inside the same folder create another textfile and name it Defender.jsCode:Update-MpSignature
Input this into that textfile and save:
Now create a task in task scheduler with these settings:Code:var wshShell = new ActiveXObject("WScript.Shell"); wshShell.Run('%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -ExecutionPolicy Bypass -File "C:\\Scripts\\Defender.ps1"', 0, false);
Trigger: At logon
Action Start a program, Program/scipt: wscript
Arguments: "C:\Scripts\Defender.js"
The reason this works is because wscript is not a console program.
Voilą done!