< Back

Get-NsxFirewallExclusionListMember

Sat Jan 18, 2020 9:06 pm

NAME Get-NsxFirewallExclusionListMember



SYNOPSIS

Gets the virtual machines that are excluded from the distributed firewall





SYNTAX

Get-NsxFirewallExclusionListMember [[-Connection] <PSObject>] [<CommonParameters>]





DESCRIPTION

The 'Exclusion List' is a list of virtual machines which are excluded from

the distributed firewall rules. They are not protected and/or limited by it.



If a virtual machine has multiple vNICs, all of them are excluded from

protection.



VMware recommends that you place the following service virtual machines in

the Exclusion List

* vCenter Server.

* Partner service virtual machines.

* Virtual machines that require promiscuous mode.



This cmdlet retrieves all VMs on the exclusion list and returns PowerCLI VM

objects.





PARAMETERS

-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? 1

Default value $defaultNSXConnection

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-NsxFirewallExclusionListMember



Retrieves the entire contents of the exclusion list









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-NsxFirewallExclusionListMember | where-object { $_.name -match 'myvm'}



Retrieves a specific vm from the exclusion list if it exists.











RELATED LINKS