I just read a blog post from Ed Wilson (Scripting Guy) about and wondered if there’s more here. And yes there is. If you have a default insallation of Windows 8 and have defender enabled or work in an enterprise environment and use Configuration Manager with the System Center Endpoint Security agent deployed on your clients then you the below listed cmdlets available.
To get a list of all available Defender cmdlets just run the following command within a powershell console
Get-command -Module defender
For a list of all available SCEP cmdlets, run the following command within a powershell console.
Get-command -Module MpProvider
If no cmdlets are returned try first loading the module using the following commandImport-Module “$env:ProgramFiles\Microsoft Security Client\MpProvider”
You will notice that the cmdlet names are quite similar, the only difference is that the cmdlets for SCEP have “Prot” within the name.
So what can we do here?
Antivirus and Spyware definitions can be updates as following:
Update-MProtSignature -UpdateSource MicrosoftUpdateServer
To start a scan use the following command. Available Scantypes are QuickScan, FullScan and CustomScan)
Start-MProtScan -ScanType QuickScan
When using the CustomScan option an the path must be provied using the -Scanpath parameter
Computer protection status information is retrieved with the following command
Get-MpComputerStatus
Configuration settings can be gathered using
Get-MProtPreference
To find out information about an actual threat on a client, run
Get-MProtThreat
Although there is a Remove-MProtThreat cmdlet, it doesn’t seem to recognize the active threat, as i received the following message when executing it.
For configuratin settings, please refer to Ed Wilson’s blog post
That’s it for today, now it has stopped raining and the sun starts to shine, so let’s get out of here