scripts

Get-AspNetEvents.ps1

SYNOPSIS

Parses ASP.NET errors from the event log on the given server.

SYNTAX

Get-AspNetEvents.ps1 [[-ComputerName] <String[]>] [[-After] <DateTime>] [[-Before] <DateTime>] [-AllProperties]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

EXAMPLES

EXAMPLE 1

Get-AspNetEvents.ps1 WebServer

Returns any ASP.NET-related events from the WebServer Application event log that occurred today.

PARAMETERS

-ComputerName

The name of the server on which the error occurred.

Type: String[]
Parameter Sets: (All)
Aliases: CN, Server

Required: False
Position: 1
Default value: $env:COMPUTERNAME
Accept pipeline input: False
Accept wildcard characters: False

-After

Skip events older than this datetime. Defaults to 00:00 today.

Type: DateTime
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: ([DateTime]::Today)
Accept pipeline input: False
Accept wildcard characters: False

-Before

Skip events newer than this datetime. Defaults to now.

Type: DateTime
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: ([DateTime]::Now)
Accept pipeline input: False
Accept wildcard characters: False

-AllProperties

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
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

OUTPUTS

System.Management.Automation.PSObject containing the fields stored in the event.

NOTES

Get-WinEvent