Get-VMNetworkAdapterExtendedAcl -VMName "MyVirtualMachine1"
Add-VMNetworkAdapterExtendedAcl -VMName "MyVirtualMachine1" -Action "Deny" -Direction "Outbound" -Weight 1
Add-VMNetworkAdapterExtendedAcl -VMName "MyVirtualMachine1" -Action "Deny" -Direction "Inbound" -Weight 1
Add-VMNetworkAdapterExtendedAcl -VMName "MyVirtualMachine1" -Action "Allow" -Direction "Outbound" -RemoteIPAddress 10.0.1.0/24 -RemotePort 67 -Protocol "UDP" -Weight 10
Add-VMNetworkAdapterExtendedAcl -VMName "MyVirtualMachine1" -Action "Allow" -Direction "Inbound" -RemoteIPAddress 10.0.1.0/24 -RemotePort 68 -Protocol "UDP" -Weight 10
Remove-VMNetworkAdapterExtendedAcl -VMName "MyVirtualMachine1" -Direction "Inbound" -Weight 1
Remove-VMNetworkAdapterExtendedAcl -VMName "MyVirtualMachine1" -Direction "Inbound" -Weight 10
Remove-VMNetworkAdapterExtendedAcl -VMName "MyVirtualMachine1" -Direction "Outbound" -Weight 1
Remove-VMNetworkAdapterExtendedAcl -VMName "MyVirtualMachine1" -Direction "Outbound" -Weight 10
|