Get-VMNetworkAdapterAcl

Get-VMNetworkAdapterAcl

Gets the ACLs configured for a virtual machine network adapter.

Syntax

Parameter Set: VMName
Get-VMNetworkAdapterAcl [[-VMName] <String[]> ] [-ComputerName <String[]> ] [-VMNetworkAdapterName <String> ] [ <CommonParameters>]

Parameter Set: ManagementOS
Get-VMNetworkAdapterAcl -ManagementOS [-ComputerName <String[]> ] [-VMNetworkAdapterName <String> ] [ <CommonParameters>]

Parameter Set: ResourceObject
Get-VMNetworkAdapterAcl [-VMNetworkAdapter] <VMNetworkAdapterBase[]> [ <CommonParameters>]

Parameter Set: VMObject
Get-VMNetworkAdapterAcl [-VM] <VirtualMachine[]> [-VMNetworkAdapterName <String> ] [ <CommonParameters>]

Parameter Set: VMSnapshot
Get-VMNetworkAdapterAcl [-VMSnapshot] <VMSnapshot> [ <CommonParameters>]

Detailed Description

The Get-VMNetworkAdapterAcl cmdlet gets the ACLs configured for a virtual machine network adapter. If an ACL entry is created to be applied to both directions, it will appear under the list of entries for the inbound direction and under the list of entries for the outbound direction in the output from Get-VMNetworkAdapterAcl.

Parameters

-ComputerName<String[]>

Specifies one or more Hyper-V hosts on which the ACLs configured for a virtual machine network adapter are to be retrieved. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer — use “localhost” or a dot (“.”) to specify the local computer explicitly.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ManagementOS

Specifies that the ACLs are to be configured in the management (i.e. the parent, or host) operating system.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VM<VirtualMachine[]>

Specifies the virtual machine in which the ACLs configured for a virtual machine network adapter are to be retrieved.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMName<String[]>

Specifies the name of the virtual machine in which the ACLs configured for a virtual machine network adapter are to be retrieved.

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMNetworkAdapter<VMNetworkAdapterBase[]>

Specifies the virtual network adapter for which the configured ACLs are to be retrieved.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMNetworkAdapterName<String>

Specifies the virtual network adapter name for which the configured ACLs are to be retrieved.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMSnapshot<VMSnapshot>

Specifies the snapshot in which the ACLs configured for a virtual machine network adapter are to be retrieved.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1

Gets all the port ACLs configured on virtual machine Redmond.

PS C:\> Get-VMNetworkAdapterAcl –VMName Redmond