Get-KrScheduleReport

SYNOPSIS

Returns the full schedule report.

SYNTAX

Get-KrScheduleReport [[-Server] <KestrunHost>] [[-TimeZoneId] <String>] [-AsHashtable] [<CommonParameters>]

DESCRIPTION

This function retrieves the current schedule report, including all scheduled jobs and their next run times.

EXAMPLES

EXAMPLE 1

Get-KrScheduleReport -Server $myServer
Retrieves the schedule report from the specified Kestrun server.

EXAMPLE 2

Get-KrScheduleReport -Server $myServer -TimeZoneId "Europe/Berlin"
Retrieves the schedule report with timestamps converted to the specified time zone.

PARAMETERS

-Server

The Kestrun host object containing the scheduler.

Type: KestrunHost
Parameter Sets: (All)
Aliases:

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

-TimeZoneId

Optional Windows / IANA time-zone id to convert timestamps. Example: “Pacific Standard Time” or “Europe/Berlin”

Type: String
Parameter Sets: (All)
Aliases:

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

-AsHashtable

If set, returns a hashtable instead of a ScheduleReport object.

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.

INPUTS

OUTPUTS

Returns a ScheduleReport object or a hashtable if AsHashtable is set.

NOTES