Skip to main content

Get-KeldorUptime

SYNOPSIS

Gets normalized system uptime.

SYNTAX

Local (Default)

Get-KeldorUptime [<CommonParameters>]

ComputerName

Get-KeldorUptime [-ComputerName] <String[]> [-Credential <PSCredential>]
[<CommonParameters>]

PSSession

Get-KeldorUptime -PSSession <PSSession[]> [<CommonParameters>]

DESCRIPTION

Returns native boot time, current time, TimeSpan uptime, and numeric totals for local or remote systems.

EXAMPLES

EXAMPLE 1

Get-KeldorUptime | Select-Object ComputerName, LastBootTime, Uptime

Gets local uptime using native value types.

EXAMPLE 2

Get-PSSession | Get-KeldorUptime | Sort-Object TotalDays -Descending

Reuses sessions and sorts targets by uptime.

PARAMETERS

-ComputerName

Specifies computers reachable through configured PowerShell remoting. Keldor must be installed on each target.

Type: String[]
Parameter Sets: ComputerName
Aliases: HostName, DnsHostName

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

-PSSession

Specifies existing PowerShell sessions to reuse.

Type: PSSession[]
Parameter Sets: PSSession
Aliases:

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

-Credential

Specifies a credential for ComputerName remoting.

Type: PSCredential
Parameter Sets: ComputerName
Aliases:

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

System.String and System.Management.Automation.Runspaces.PSSession.

OUTPUTS

Keldor.Uptime

NOTES

Get-UpTime remains a deprecated Windows compatibility wrapper for its historical output shape.

ALIASES

None.

PLATFORM APPLICABILITY

Windows, macOS, and Linux.

POWERSHELL COMPATIBILITY

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

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