NAME
Remove-NetEventSession
SYNOPSIS
Removes a network event session.SYNTAX
Remove-NetEventSession [-AssociatedEventProvider
] [-CimSession ] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
] [-PassThru] [-ThrottleLimit
] [ ] Remove-NetEventSession [-CimSession
] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
[] [-PassThru] [-ThrottleLimit ] ] Remove-NetEventSession [-Name]
[-CimSession ] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
] [-PassThru] [-ThrottleLimit ] [ ] DESCRIPTION
The Remove-NetEventSession cmdlet removes a network event session. The cmdlet also deletes all properties and
objects associated with the session. A session controls how the computer logs events and, optionally, network traffic, or packets. You can have only one session at a time. Before you can add a network event session by using theNew-NetEventSession cmdlet, remove an existing session.
PARAMETERS
-AssociatedEventProvider [
Specifies the associated network event provider as a CIM object. To obtain the network event provider, use the] Get-NetEventProvider cmdlet.
Required? false Position? named Default value none Accept pipeline input? True (ByValue) Accept wildcard characters? false-CimSession [
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such] as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local
computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false-InformationAction [
Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:] -- SilentlyContinue
-- Stop
-- Continue
-- Inquire
-- Ignore
-- Suspend
Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false-InformationVariable [
Specifies a variable in which to store an information event message. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false] -Name
Specifies an array of names of sessions to remove. Required? true Position? 1 Default value noneAccept pipeline input? True (ByPropertyName)
Accept wildcard characters? false-PassThru [
Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false] -ThrottleLimit [
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell? calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false] 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: Remove a session
PS C:\>Remove-NetEventSession -Name "Session38"
This command removes the session named Session38. The command removes all the configuration information associated with the session.RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkID=294398Get-NetEventSession
New-NetEventSession
Set-NetEventSession
Start-NetEventSession
Stop-NetEventSession
Get-NetEventProvider