Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows defender uninstallation in Windows Server #300

Merged
merged 3 commits into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}