Get-WinEventLogExtract
SYNOPSIS
Extract Event logs of a server list, and create html / excel report
SYNTAX
Get-WinEventLogExtract [-ComputerName] <String[]> [-Days] <Int32> [-ErrorLevel] <String> [-Export <String[]>]
[-ReportPath <DirectoryInfo>] [-OpenReportsFolder] [<CommonParameters>]
DESCRIPTION
Extract Event logs of a server list, and create html / excel report
EXAMPLES
EXAMPLE 1
Get-WinEventLogExtract -ComputerName localhost
PARAMETERS
-ComputerName
Name of the host
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Days
Limit the search results
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-ErrorLevel
Set the default filter to this level and above.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Export
Export results
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Host
Accept pipeline input: False
Accept wildcard characters: False
-ReportPath
Path where report will be saved
Type: DirectoryInfo
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: C:\Temp
Accept pipeline input: False
Accept wildcard characters: False
-OpenReportsFolder
Open the folder after report creation.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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.