Windows Defender mit PowerShell konfigurieren

Die folgende Codeschnipsel zeigen wie man Microsoft Windows Defender mittels Powershell konfigurieren und verwalten kann

# List all Defender cmdlets
Get-Command -module defender

# Start a quick scan
Start-MpScan

# Start a full scan in a path
Start-MpScan -ScanPath C:\temp -ScanType FullScan

# Get status
Get-MpComputerStatus 

# Get Preferences (current configuration)
Get-MpPreference 

# Change some settings
Set-MpPreference -DisableRemovableDriveScanning $false
Set-MpPreference -DisableRealtimeMonitoring $false

# Add folders to the ExclusionPath
Add-MpPreference -ExclusionPath C:\Video, C:\install

# Remove folder from ExclusionPath
Remove-MpPreference -ExclusionPath C:\install

# Trigger Signature update
Update-MpSignature

# Disable Defender
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name DisableAntiSpyware -Value 1 -PropertyType DWORD -Force

		

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert