Why would you want to do this for all your portgroups?
As a security best practise leave this to rejected.
If you need promiscuous mode, create a new portgroup specifically for this purpose.
If you want to set this for all portgroups, you can better change this on your vSwitch unless you've overide switch settings by specifying portgroup security settings.
Afaik this can only be done using the SDK. Check out Onyx to help you out with this task.