You can modify the security policy of a port group to enable promiscuous mode, which allows monitoring of the traffic generated by virtual machines.

Verify that you are connected to a vCenter Server system.

1

Get the current security policy of the port group.

$policy = Get-VDSecurityPolicy -VDPortGroup $myVDPortGroup
2

Enable promiscuous mode for the port group.

Set-VDSecurityPolicy $policy -AllowPromiscuous $true