Created
October 29, 2023 17:20
-
-
Save renelink/3cd595a2d5f60224bd77a65f93293785 to your computer and use it in GitHub Desktop.
windows-defender-hyper-v-exclusions.ps1
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
# powershell -executionpolicy bypass -File .\windows-defender-hyper-v-exclusions.ps1 | |
Add-MpPreference -ExclusionExtension ".vhd" | |
Add-MpPreference -ExclusionExtension ".vhdx" | |
Add-MpPreference -ExclusionExtension ".avhd" | |
Add-MpPreference -ExclusionExtension ".avhdx" | |
Add-MpPreference -ExclusionExtension ".vhds" | |
Add-MpPreference -ExclusionExtension ".vhdpmem" | |
Add-MpPreference -ExclusionExtension ".iso" | |
Add-MpPreference -ExclusionExtension ".rct" | |
Add-MpPreference -ExclusionExtension ".mrt" | |
Add-MpPreference -ExclusionExtension ".vsv" | |
Add-MpPreference -ExclusionExtension ".bin" | |
Add-MpPreference -ExclusionExtension ".xml" | |
Add-MpPreference -ExclusionExtension ".vmcx" | |
Add-MpPreference -ExclusionExtension ".vmrs" | |
Add-MpPreference -ExclusionExtension ".vmgs" | |
Add-MpPreference -ExclusionPath "%ProgramData%\Microsoft\Windows\Hyper-V" | |
Add-MpPreference -ExclusionPath "%Public%\Documents\Hyper-V\Virtual Hard Disks" | |
Add-MpPreference -ExclusionPath "%SystemDrive%\ProgramData\Microsoft\Windows\Hyper-V\Snapshots" | |
Add-MpPreference -ExclusionProcess "%systemroot%\System32\Vmms.exe" | |
Add-MpPreference -ExclusionProcess "%systemroot%\System32\Vmwp.exe" | |
Add-MpPreference -ExclusionProcess "%systemroot%\System32\Vmsp.exe" | |
Add-MpPreference -ExclusionProcess "%systemroot%\System32\Vmcompute.exe" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configure Windows Defender for Hyper-V. For details take a look at https://learn.microsoft.com/en-us/troubleshoot/windows-server/virtualization/antivirus-exclusions-for-hyper-v-hosts