Remove-VMNetworkAdapterExtendedAcl
Remove-VMNetworkAdapterExtendedAcl
Removes an extended ACL for a virtual network adapter.
Sintaxis
Parameter Set: VMName
Remove-VMNetworkAdapterExtendedAcl [-VMName] <String[]> -Direction <VMNetworkAdapterExtendedAclDirection> -Weight <Int32> [-ComputerName <String[]> ] [-Passthru] [-VMNetworkAdapterName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: InputObjectParameter
Remove-VMNetworkAdapterExtendedAcl [-InputObject] <VMNetworkAdapterExtendedAclSetting[]> [-Passthru] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ManagementOS
Remove-VMNetworkAdapterExtendedAcl -Direction <VMNetworkAdapterExtendedAclDirection> -ManagementOS -Weight <Int32> [-ComputerName <String[]> ] [-Passthru] [-VMNetworkAdapterName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ResourceObject
Remove-VMNetworkAdapterExtendedAcl [-VMNetworkAdapter] <VMNetworkAdapterBase[]> -Direction <VMNetworkAdapterExtendedAclDirection> -Weight <Int32> [-Passthru] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: VMObject
Remove-VMNetworkAdapterExtendedAcl [-VM] <VirtualMachine[]> -Direction <VMNetworkAdapterExtendedAclDirection> -Weight <Int32> [-Passthru] [-VMNetworkAdapterName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Descripción detallada
The Remove-VMNetworkAdapterExtendedAcl cmdlet removes an extended access control list (ACL) for a virtual network adapter.
Parámetros
-ComputerName<String[]>
Specifies an array of Hyper-V hosts. The cmdlet removes an ACL associated with a virtual network adapter on the Hyper-V hosts that you specify.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Direction<VMNetworkAdapterExtendedAclDirection>
Specifies the direction of network traffic, from the perspective of the virtual machine, to which the ACL applies. The cmdlet removes an ACL that has the value that you specify. Los valores aceptables para este parámetro son los siguientes:
-- Inbound
-- Outbound
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-InputObject<VMNetworkAdapterExtendedAclSetting[]>
Especifica la entrada para este cmdlet. Puede usar este parámetro o puede canalizar la entrada a este cmdlet.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue, ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-ManagementOS
Indicates that the cmdlet operates on the parent or host operating system. If you specify this parameter, this cmdlet removes an ACL that applies in the parent or host operating system.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Passthru
Devuelve un objeto que representa el elemento con el que está trabajando. De forma predeterminada, este cmdlet no genera ningún resultado.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-VM<VirtualMachine[]>
Specifies an array of virtual machines as VirutalMachine objects. The cmdlet removes an ACL for network adapters that belong to the virtual machines that you specify. To obtain a virtual machine object, use the Get-VM cmdlet.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-VMName<String[]>
Specifies an array of names of virtual machines. The cmdlet removes an ACL for network adapters that belong to the virtual machines that you specify.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-VMNetworkAdapter<VMNetworkAdapterBase[]>
Specifies an array virtual machine network adapters as VMNetworkAdapterBase objects. The cmdlet removes an ACL for the network adapters that you specify. To obtain a network adapter, use the Get-VMNetworkAdapter cmdlet.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-VMNetworkAdapterName<String>
Specifies the name of a virtual network adapter. The cmdlet removes an ACL for the network adapter that you specify.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Weight<Int32>
Specifies the weight of an ACL entry. Because weight is unique for each entry, if you specify a value for this parameter, the cmdlet removes a specific extended ACL entry.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Confirm
Solicita confirmación antes de ejecutar el cmdlet.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WhatIf
Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
- None
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
- Microsoft.HyperV.PowerShell.VMNetworkAdapterExtendedAclSetting
Ejemplos
Example 1: Remove a specific ACL
This command removes the ACL for inbound traffic that has a weight of 50 from the virtual machine named TSQA01.
PS C:\> Remove-VMNetworkAdapterExtendedAcl -VMName "TSQA01" –Direction InBound -Weight 50
Example 2: Remove all ACLs
This command uses the Get-VMNetworkAdapterExtendedAcl cmdlet to get all the ACLs for the virtual machine named TSQA01, and then passes them to the current cmdlet by using the pipeline operator. The command removes all the ACLs.
PS C:\> Get-VMNetworkAdapterExtendedAcl -VMName "TSQA01" | Remove-VMNetworkAdapterExtendedAcl
Temas relacionados
Add-VMNetworkAdapterExtendedAcl