< Back

Remove-NsxService

Sat Jan 18, 2020 9:26 pm

NAME Remove-NsxService



SYNOPSIS

Removes the specified NSX Service (aka Application).





SYNTAX

Remove-NsxService [-Service] <XmlElement> [-Confirm] [-force] [-Connection <PSObject>] [<CommonParameters>]





DESCRIPTION

An NSX Service defines a service as configured in the NSX Distributed

Firewall.



This cmdlet removes the NSX service specified.





PARAMETERS

-Service <XmlElement>



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompt for confirmation. Specify as -confirm:$false to disable confirmation prompt



Required? false

Position? named

Default value True

Accept pipeline input? false

Accept wildcard characters? false



-force [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? named

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-NsxService -Name TestService | Remove-NsxService



Removes the service TestService











RELATED LINKS