Skip to content

Get SdnEventLog

Adam Rudell edited this page Jul 15, 2024 · 6 revisions

Get-SdnEventLog

SYNOPSIS

Collect the Windows Event Logs for different SDN Roles.

SYNTAX

Get-SdnEventLog [-Role] <String[]> [-OutputDirectory] <FileInfo> [[-FromDate] <DateTime>]
 [[-ToDate] <DateTime>] [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

EXAMPLE 1

Get-SdnEventLog -OutputDirectory "C:\Temp\CSS_SDN"

EXAMPLE 2

Get-SdnEventLog -OutputDirectory "C:\Temp\CSS_SDN" -FromDate (Get-Date).AddHours(-12)

PARAMETERS

-Role

The specific SDN role to collect windows event logs from.

Type: String[]
Parameter Sets: (All)
Aliases:

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

-OutputDirectory

Specifies a specific path and folder in which to save the files.

Type: FileInfo
Parameter Sets: (All)
Aliases:

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

-FromDate

Determines the start time of what logs to collect. If omitted, defaults to the last 1 day.

Type: DateTime
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: (Get-Date).AddDays(-1)
Accept pipeline input: False
Accept wildcard characters: False

-ToDate

Determines the end time of what logs to collect. Optional parameter that if ommitted, defaults to current time.

Type: DateTime
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: (Get-Date)
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

NOTES

RELATED LINKS

Documentation

How To Guides:

Troubleshooting Guides

Learning

Functions

Clone this wiki locally