PowerShell Logo Small

Remove-VMNetworkAdapterAcl



This is the built-in help made by Microsoft for the command 'Remove-VMNetworkAdapterAcl', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Removes an ACL applied to the traffic through a virtual network adapter.

SYNTAX


Remove-VMNetworkAdapterAcl [-VMName] <String[]> [-ComputerName <String[]>] [-LocalIPAddress <String[]>] [-LocalMacAddress <String[]>] [-Passthru] [-RemoteIPAddress
<String[]>] [-RemoteMacAddress <String[]>] [-VMNetworkAdapterName <String>] -Action <VMNetworkAdapterAclAction> -Direction <VMNetworkAdapterAclDirection> [-Confirm]
[-WhatIf] [<CommonParameters>]
Remove-VMNetworkAdapterAcl [-VMNetworkAdapter] <VMNetworkAdapterBase[]> [-LocalIPAddress <String[]>] [-LocalMacAddress <String[]>] [-Passthru] [-RemoteIPAddress <String[]>]
[-RemoteMacAddress <String[]>] -Action <VMNetworkAdapterAclAction> -Direction <VMNetworkAdapterAclDirection> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-VMNetworkAdapterAcl [-VM] <VirtualMachine[]> [-LocalIPAddress <String[]>] [-LocalMacAddress <String[]>] [-Passthru] [-RemoteIPAddress <String[]>] [-RemoteMacAddress
<String[]>] [-VMNetworkAdapterName <String>] -Action <VMNetworkAdapterAclAction> -Direction <VMNetworkAdapterAclDirection> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-VMNetworkAdapterAcl [-ComputerName <String[]>] [-LocalIPAddress <String[]>] [-LocalMacAddress <String[]>] [-Passthru] [-RemoteIPAddress <String[]>] [-RemoteMacAddress
<String[]>] [-VMNetworkAdapterName <String>] -Action <VMNetworkAdapterAclAction> -Direction <VMNetworkAdapterAclDirection> -ManagementOS.space

DESCRIPTION


The Remove-VMNetworkAdapterAcl cmdlet removes an ACL applied to the traffic through a virtual network adapter.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306908

REMARKS

<

Examples


Example 1

PS C:\>Remove-VMNetworkAdapterAcl -VMName Redmond -RemoteIPAddress 0.0.0.0/0 -Direction Both -Action Allow



Removes from virtual machine Redmond the ACL allowing any IPv4 traffic sent from or to the virtual machine.




Example 2

PS C:\>Remove-VMNetworkAdapterAcl –VMName Redmond -RemoteIPAddress ::/0 -Direction Both -Action Allow



Removes from virtual machine Redmond the ACL that allows any IPv6 traffic sent from and to the virtual machine.




Example 3

PS C:\>Remove-VMNetworkAdapterAcl -VMName Redmond -RemoteMacAddress 03-0f-01-0e-aa-b2 -Direction Both -Action Deny



Removes the MAC ACL to prevent virtual machine Redmond from sending traffic to or receiving traffic from a remote device with MAC address 03-0f-01-0e-aa-b2.




Example 4

PS C:\>Get-VMNetworkAdapterAcl -VMName Redmond | Remove-VMNetworkAdapterAcl



Retrieves all the port ACLs configured for virtual machine Redmond and pipelines them to Remove-VMNetworkAdapterAcl, which removes all of them from the virtual machine.