mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Add Windows Defender exclusion for unpigz.exe
This commit is contained in:
		@@ -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."
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user