Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Windows Defender is an essential component of Windows operating systems, providing real-time protection against malware and other security threats. As a Systems Engineer specializing in Windows, it's crucial to know how to configure its settings to optimize security and performance. One of the powerful tools at your disposal for this task is the PowerShell cmdlet Set-MpPreference
. This article will guide you through using Set-MpPreference
to customize Windows Defender settings.
Set-MpPreference
is a PowerShell cmdlet that allows you to configure various settings for Windows Defender, such as scan schedules, exclusion paths, and real-time protection preferences. It is part of the Windows Defender module in PowerShell, which provides comprehensive control over the antivirus features of Windows.
To exclude a specific file or folder from Windows Defender scans, you can use the -ExclusionPath
parameter. This is useful for preventing false positives or improving performance for files you trust.
Set-MpPreference -ExclusionPath "C:\Path\To\Your\FileOrFolder"
While not generally recommended, there might be scenarios where you need to temporarily disable real-time protection. You can do this using the -DisableRealtimeMonitoring
parameter.
Set-MpPreference -DisableRealtimeMonitoring $true
To re-enable real-time protection, set the parameter to $false
.
Set-MpPreference -DisableRealtimeMonitoring $false
You can schedule a daily quick scan using the -ScanScheduleQuickScanTime
parameter. This helps ensure your system is regularly checked for threats.
Set-MpPreference -ScanScheduleQuickScanTime "12:00:00"
This command schedules a quick scan every day at noon.
Adjusting the cloud protection level can enhance the detection capabilities of Windows Defender. Use the -MAPSReporting
parameter to set the desired level.
Set-MpPreference -MAPSReporting Advanced
The levels can be set to Disabled
, Basic
, or Advanced
.
Set-MpPreference
requires administrative privileges. Ensure you open PowerShell as an administrator.