Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rgl/435f32f4b7f8b0ceaa8dee36ca8ecbf4 to your computer and use it in GitHub Desktop.

Select an option

Save rgl/435f32f4b7f8b0ceaa8dee36ca8ecbf4 to your computer and use it in GitHub Desktop.
Remove all the VirtualBox Host-Only network interfaces from the Windows firewall
# exclude the VirtualBox network interfaces from the Windows Firewall.
Set-NetFirewallProfile -DisabledInterfaceAliases (Get-NetAdapter `
| Where-Object {$_.Virtual} `
| Where-Object {$_.DriverFileName -like 'VBox*.sys'} `
| ForEach-Object { $_.InterfaceAlias })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment