Skip to content

Commit

Permalink
Merge pull request #300 from earljon/fix-windows-defender
Browse files Browse the repository at this point in the history
Fix windows defender uninstallation in Windows Server
  • Loading branch information
StefanScherer authored Aug 17, 2021
2 parents 46fe753 + a20cb2b commit 8d7e16e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ In case you're using Parallels, you can now build the `Windows Server 2019 with
Prerequisites:
* Parallels Pro or Business, version 11 and up.
* Vagrant Parallels Provider: https://github.com/Parallels/vagrant-parallels
* Parallels Virtualization for Intel Mac (https://www.parallels.com/download/pvsdk/intel/)
* Parallels Virtualization SDK for Intel Mac (https://www.parallels.com/download/pvsdk/intel/)

You can use the following sample command to build a Parallels VM:

Expand Down
2 changes: 1 addition & 1 deletion scripts/debloat-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else {
. $env:TEMP\Debloat-Windows-10-master\scripts\disable-windows-defender.ps1
}
else {
Uninstall-WindowsFeature Windows-Defender-Features
Uninstall-WindowsFeature Windows-Defender
}
Write-Output Optimize Windows Update
. $env:TEMP\Debloat-Windows-10-master\scripts\optimize-windows-update.ps1
Expand Down
5 changes: 4 additions & 1 deletion scripts/docker/disable-windows-defender.ps1
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
Set-MpPreference -DisableRealtimeMonitoring $true
$DefenderInstalled = Get-Command -Module Defender
if($null -ne $DefenderInstalled) {
Set-MpPreference -DisableRealtimeMonitoring $true
}

0 comments on commit 8d7e16e

Please sign in to comment.