New-EventSource

SYNOPSIS

Create a new event source, also called event provider, for an event log.

SYNTAX

New-EventSource [[-EventLog] <String>] [[-Source] <String>] [<CommonParameters>]

DESCRIPTION

Create a new event source, also called event provider, for an event log.

EXAMPLES

Example 1

PS C:\> New-EventSource -EventLog "Windows PowerShell" -Source thedavecarroll

Add a new source, thedavecarroll, to the Windows PowerShell event log.

PARAMETERS

-EventLog

The name of the event log.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Source

The name of the new source, or provider.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

Online Version