Get-SystemUptime
SYNOPSIS
Calculates the uptime of a system
SYNTAX
Get-SystemUptime [[-ComputerName] <String[]>] [[-Credential] <PSCredential>] [<CommonParameters>]
DESCRIPTION
Calculates the uptime of a system
EXAMPLES
EXAMPLE 1
Get-SystemUptime -ComputerName Neptune
PARAMETERS
-ComputerName
Computer to query.
Type: String[]
Parameter Sets: (All)
Aliases: DNSHostName, Name
Required: False
Position: 1
Default value: $env:COMPUTERNAME
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Credential
To connect using a different account.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
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.