Skip to content

Instantly share code, notes, and snippets.

@rikka0w0
Created December 6, 2023 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rikka0w0/9b14c9b74d1d9ef8d7dad9ec9052ec26 to your computer and use it in GitHub Desktop.
Save rikka0w0/9b14c9b74d1d9ef8d7dad9ec9052ec26 to your computer and use it in GitHub Desktop.
$a = Get-VMSystemSwitchExtensionPortFeature -FeatureId 776e0ba7-94a1-41c8-8f28-951f524251b5
$a.SettingData.MonitorMode = 2
Add-VMSwitchExtensionPortFeature -ExternalPort –SwitchName "DefaultSwitch" -VMSwitchExtensionFeature $a

Also check Enable MAC address spoofing in the VM's NIC settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment