Its easy to get the last boot time of a Windows machine but how do you get the uptime
function Get-Uptime { [CmdletBinding()] param ( [string]$ComputerName = $env:COMPUTERNAME )
$os = Get-CimInstance -ClassName Win32_OperatingSystem -ComputerName… Read the full text.