Skip to content

Get SdnLogFile

Adam Rudell edited this page May 21, 2025 · 1 revision

Get-SdnLogFile

SYNOPSIS

SYNTAX

Get-SdnLogFile [-OutputDirectory] <FileInfo> [[-FromDate] <DateTime>] [[-ToDate] <DateTime>]
 [[-ConvertETW] <Boolean>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

PARAMETERS

-OutputDirectory

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

Type: FileInfo
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
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 4 hours.

Type: DateTime
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: (Get-Date).AddHours(-4)
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: 3
Default value: (Get-Date)
Accept pipeline input: False
Accept wildcard characters: False

-ConvertETW

Optional parameter that allows you to specify if .etl trace should be converted. By default, set to $true

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-ProgressAction

{{ Fill ProgressAction Description }}

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

NOTES

RELATED LINKS

Documentation

How To Guides:

Troubleshooting Guides

Learning

Functions

Clone this wiki locally