Skip to main content

Get-ShutdownLog

SYNOPSIS

Gets Shutdown Log.

SYNTAX

Get-ShutdownLog [[-ComputerName] <String[]>] [-DaysBackToSearch <Int32>] [-MostRecent <Int32>]
[<CommonParameters>]

DESCRIPTION

Gets Shutdown Log.

EXAMPLES

EXAMPLE 1

Get-ShutdownLog

Executes Get-ShutdownLog using the arguments shown.

PARAMETERS

-ComputerName

Specifies the computer name to use.

Type: String[]
Parameter Sets: (All)
Aliases: Host, Name, Computer, CN

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

-DaysBackToSearch

Specifies the Days Back To Search value.

Type: Int32
Parameter Sets: (All)
Aliases: Days

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

-MostRecent

Specifies the Most Recent value.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 10
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.Object

NOTES

ALIASES

None.

PLATFORM APPLICABILITY

Windows only. The platform-aware loader does not export this command on Linux or macOS.

POWERSHELL COMPATIBILITY

See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.

https://docs.keldor.dev/powershell/keldor/Get-ShutdownLog