-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac37a1c
commit fb9415b
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Set Microsoft Defender Exploit Guard Attack Surface Reduction Rules to disabled | ||
$ASR = Get-MpPreference | Select-Object -ExpandProperty AttackSurfaceReductionRules | ||
$ASR.set_Item("ExcludeFilesAndProcessesFromASR", 0) | ||
Set-MpPreference -AttackSurfaceReductionRules $ASR | ||
|
||
# Set Exclusions Path to Disabled | ||
$ExclusionsPath = Get-MpPreference | Select-Object -ExpandProperty Exclusions | ||
$ExclusionsPath.set_Item("Paths", $null) | ||
Set-MpPreference -Exclusions $ExclusionsPath | ||
|
||
# Turn on script scanning | ||
Set-MpPreference -ScanScriptsEnabled 1 | ||
|
||
# Scan removable drives | ||
Set-MpPreference -ScanRemovableDrivesEnabled 1 | ||
|
||
# Enable sandboxing for Microsoft Defender Antivirus | ||
Set-MpPreference -MapiScanningEnabled 1 | ||
|
||
# Set Network Protection to Block | ||
Set-MpPreference -EnableNetworkProtection 1 | ||
|
||
# Enable Application Guard (For Enterprise) | ||
Enable-WindowsOptionalFeature -Online -FeatureName Windows-Defender-ApplicationGuard | ||
|
||
# Set Always install with elevated privileges to disabled | ||
Set-MpPreference -AlwaysInstallElevated 0 |