How to get last boot uptime of remote servers through powershell,
$input = Get-Content -Path C:\temp\ip.txt
foreach ( $ip in $input )
{
Get-WmiObject -Class win32_operatingsystem -ComputerName $ip -ErrorAction SilentlyContinue | Select-Object csname, @{ n= 'Lastboot_time'; e= {$_.converttodatetime($_.LastBootUpTime)}}
}
How to get last boot uptime of remote servers,
Теги
How to get Lastrebootuptimelastrebootuptime of remote serverswhen the remote servers rebootedhow to find when remote server rebooted last timethrough powershellLastRebootUPtimeuptime of multiple remote serversuptime of remote servers through powershell scripts.how to get last reboot time of remote serversforeach commandget-wmiojectsget-wmiobjectConvertodatetime format