< Back

Get-d00mEventLogReport

Mon Jan 13, 2020 8:36 am

NAME Get-d00mEventLogReport



SYNOPSIS

Generate Event Log HTML Report





SYNTAX

Get-d00mEventLogReport [-ComputerName] <String[]> [[-Credential] <PSCredential>] [[-FilePath] <String>]

[<CommonParameters>]





DESCRIPTION

Iterate through available event logs for Error, Warning, or FailureAudit

event entires generated in the past 24 hours and saves the report in the

current directory using current credentials by default





PARAMETERS

-ComputerName <String[]>

The computers to which to execute this report



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Credential <PSCredential>

The credential to use when creating a CIM session to the computer. The default is the current users

credentials.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FilePath <String>

The directory to save the HTML report. The default is the current directory.



Required? false

Position? 3

Default value (Get-Location)

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-d00mEventLogReport -ComputerName Computer1



This example iterates through available event logs on the remote computer

Computer1 for Error, Warning, or FailureAudit event entries generated

in the past 24 hours and saves the report in the current directory using

current credentials









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>'Computer1', 'Computer2' | Get-d00mEventLogReport -Credential (Get-Credential)



This example iterates through available event logs on the remote computers

piped into the function for Error, Warning, or FailureAudit event entries

generated in the past 24 hours and saves the report in the current directory

using the specified credentials









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-d00mEventLogReport -Credential (Get-Credential) -FilePath \\\\server1\\share



This example iterates through available event logs on the local computer

for Error, Warning, or FailureAudit event entries generated in the past 24

generated in the past 24 hours and saves the report in the specified directory

using the specified credentials











RELATED LINKS