####################                                                                                                                  last update 12.10.2022
# Defender Antivirus
####################

Defender Updates, Microsoft

# run cmd as administrator
   cd %ProgramFiles%\Windows Defender
   MpCmdRun.exe -removedefinitions -dynamicsignatures
   MpCmdRun.exe -SignatureUpdate

# start powershell as administrator
   get-command -module defender
   get-service Windefend

# status
   get-mpcomputerstatus
   get-mpcomputerstatus | select *version, *update*, *state*

# qiuck scan
   start-mpscan -scantype quickscan

# full scan
   start-mpscan -scantype fullscan

# custom scan
   start-mpscan -scantype customscan -scanpath "<path>"

# settings
   get-mppreference

# update
   update-mpsignature

# list known malware, viruses and trojans
   Get-MpThreatCatalog | Format-Table | out-host -paging

# summary of known malware, viruses and trojans
   (Get-MpThreatCatalog).count
# or
   Get-MpThreatCatalog | Measure

# query Defender Updates
   get-eventlog -logname System | where message -like "Intelligence" | out-host -paging