Hyper-V vSwitch port security MAC address spoofing block

Sarah Williams 40 Reputation points
2026-09-03T17:46:50.0966667+00:00

A network monitoring VM hosted on Hyper-V fails to receive mirrored traffic because MAC Address Spoofing is blocked on the vSwitch port. How do we reconfigure virtual network adapter security settings via PowerShell?

Windows for business | Windows 365 Enterprise
0 comments No comments

Answer accepted by question author
VPHAN 42,425 Reputation points Independent Advisor
2026-09-03T18:20:04.1966667+00:00

Hi Sarah Williams,

To resolve this, you must explicitly enable MAC address spoofing for that specific virtual machine. Open an elevated PowerShell session directly on your Hyper-V host and executing the command Set-VMNetworkAdapter -VMName "YourMonitoringVM" -MacAddressSpoofing On. By replacing the placeholder with your actual virtual machine name, this command instantly reconfigures the virtual switch port to permit foreign MAC addresses. Once applied, your network monitoring appliance will successfully receive and process the mirrored traffic without being blocked by the hypervisor.

Hope this answer has brought you some useful information. If it did, please hit “accept answer”. Should you have any questions, feel free to leave a comment.

VPHAN

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.