< Back

Get-OMPSystemUpTime

Sat Jan 18, 2020 5:42 pm

NAME Get-OMPSystemUpTime



SYNOPSIS

Retreive platform independant uptime informaton (should run on both linux and windows properly).





SYNTAX

Get-OMPSystemUpTime [-FromSleep] [<CommonParameters>]





DESCRIPTION

Retreive platform independant uptime informaton (should run on both linux and windows properly).





PARAMETERS

-FromSleep [<SwitchParameter>]

For windows you can retrieve the time that the system has been up since it last was in sleep mode. Uses event

log entries to determine and can be time consuming.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Author: Zachary Loeber



-------------------------- EXAMPLE 1 --------------------------



Get-OMPSystemUpTime







RELATED LINKS

https://github.com/zloeber/OhMyPsh https://github.com/zloeber/OhMyPsh