< Back

Get-MrUptime

Sat Jan 18, 2020 4:36 pm

NAME Get-MrUptime



SYNOPSIS

Returns the uptime for the specified computer(s).





SYNTAX

Get-MrUptime [[-CimSession] <CimSession[]>] [<CommonParameters>]





DESCRIPTION

Get-MrUptime is an advanced function that retrieves the uptime for one or more

computers that are specified via a CIM session.





PARAMETERS

-CimSession <CimSession[]>

The previously created CimSession using New-Cimsession or New-MrCimSession.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue)

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

Microsoft.Management.Infrastructure.CimSession





OUTPUTS

Selected.Microsoft.Management.Infrastructure.CimInstance





NOTES





Author: Mike F Robbins

Website: http://mikefrobbins.com

Twitter: @mikefrobbins



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



PS C:\\>New-MrCimSession -ComputerName Server01, Server02 | Get-MrUptime













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-MrUptime -CimSession (New-MrCimSession -ComputerName Server01, Server02)















RELATED LINKS