Run a windows defender scan in windows 10 using POWERSHELL

%3CLINGO-SUB%20id%3D%22lingo-sub-1553855%22%20slang%3D%22en-US%22%3ERun%20a%20windows%20defender%20scan%20in%20windows%2010%20using%20POWERSHELL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1553855%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22%22%3EFolks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22x-hidden-focus%22%3EWindows%2010%20by%20default%20doesnt%20have%20periodic%20scanning%20enabled%2C%20to%20enable%20that%20i%20have%20to%20toggle%20the%20switch%20then%20i%20am%20able%20to%20scan.%3C%2FP%3E%3CP%20class%3D%22x-hidden-focus%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20am%20looking%20for%20a%20powershell%20command%20that%20can%20flip%20this%20on%20and%20another%20command%20to%20get%20scan%20results%20once%20the%20scan%20is%20finished.%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-right%22%20image-alt%3D%22win%20defender%20scan.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208852i37AE6EF76B67BDCA%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22win%20defender%20scan.png%22%20alt%3D%22win%20defender%20scan.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1553855%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESecurity%20Center%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ewindows%2010%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Defender%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1560056%22%20slang%3D%22en-US%22%3ERe%3A%20Run%20a%20windows%20defender%20scan%20in%20windows%2010%20using%20POWERSHELL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1560056%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F743898%22%20target%3D%22_blank%22%3E%40Kes2020%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20this%20cmdlet%20to%20run%20a%20Windows%20Defender%20scan%20using%20PowerShell%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fdefender%2Fstart-mpscan%3Fview%3Dwin10-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fdefender%2Fstart-mpscan%3Fview%3Dwin10-ps%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20helps!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Folks,

 

Windows 10 by default doesnt have periodic scanning enabled, to enable that i have to toggle the switch then i am able to scan.

 

I am looking for a powershell command that can flip this on and another command to get scan results once the scan is finished.

 

win defender scan.png

1 Reply

Hello @Kes2020,

 

You can use this cmdlet to run a Windows Defender scan using PowerShell:

 

https://docs.microsoft.com/en-us/powershell/module/defender/start-mpscan?view=win10-ps

 

Hope this helps!