ection Weight LocalPort Protocol Inbound Outbound Allow Inbound Allow Inbound Allow Inbound Allow Outbound Protocol 1 refers to ICMP traffic such as Ping. TCP port 80 is typically HTTP and port 443 is typically HTTPS. As you can see, there are two default rules to deny all inbound and outbound communication. 4. The PowerShell script at the end of this recipe accepts a CSV file and a list of VM names to apply the Port ACLs to. This script is a basic script to help you understand how the concept could work on a larger scale. In the VMM console, click on the Home tab in the ribbon bar and click on the PowerShell button. This will launch PowerShell with the VMM module already loaded and the console connected to the current VMM instance. In the PowerShell console, run the Add-MultipleVMNetworkAdapterExtended Acl ps1 script file using a copy of the CSV file shown in step 3 as the value for the parameter CSVPath and using Tenant A - VM 10 Tenant A - VM 11 as the value for the parameter VMList. The code is as follows: \Add-MultipleVMNetworkAdapterExtendedAcl.ps1 -CSVPath \Rules.csv -VMList "Tenant A - VM 10; Tenant A - VM 11" Chapter 7 How it works.. The PowerShell script (see the following section) parses the CSV file that is passed to it and creates rules for each entry in the file against each VM passed into the list. The script creates the PowerShell it is going to run as each rule could be different. It is possible to take this script and extend its functionality to include a variety of other parameters, including IP addresses (both local and remote) and specific network adapters. The Add-MultipleVMNetworkAdapterExtendedAcl.ps1 script The content of Add-MultipleVMNetworkAdapterExtendedAcl.ps1 is as follows: Synopsis Applies Hyper-V Extended Port ACLs to a number of VMs DESCRIPTION This script accepts a path to a CSV file where the rule definitions are listed and a list of VM names. It iterates through each VM applying the rules from the CSV file. PARAMETER CSVPath The location of the CSV that contains the rules to a