mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Add Windows Defender exclusion for unpigz.exe
This commit is contained in:
parent
eeccc9f9c0
commit
60df5606d6
@ -1635,6 +1635,8 @@ function Install-Pigz {
|
|||||||
# Windows path it'll use it instead of the default unzipper.
|
# Windows path it'll use it instead of the default unzipper.
|
||||||
# See: https://github.com/containerd/containerd/issues/1896
|
# See: https://github.com/containerd/containerd/issues/1896
|
||||||
Add-MachineEnvironmentPath -Path $PIGZ_ROOT
|
Add-MachineEnvironmentPath -Path $PIGZ_ROOT
|
||||||
|
# Add process exclusion for Windows Defender to boost performance.
|
||||||
|
Add-MpPreference -ExclusionProcess "$PIGZ_ROOT\unpigz.exe"
|
||||||
Log-Output "Installed Pigz $PIGZ_VERSION"
|
Log-Output "Installed Pigz $PIGZ_VERSION"
|
||||||
} else {
|
} else {
|
||||||
Log-Output "Pigz already installed."
|
Log-Output "Pigz already installed."
|
||||||
|
Loading…
Reference in New Issue
Block a user