If you want to check the last boot time of a PC or server?
There are multiple reasons why you may want to find out the last boot time of a server or a PC, Perhaps your server has been restarted without you knowing, and you want to be able to have a starting time to aid in your search through event logs to see what happened prior to the restart. Maybe you are remotely logged onto a PC which is running slow, but the user hasn’t restarted it for a while.
Anyhow, below is how to check the last boot time using either Powershell or CMD:
CMD Method:
The built in systeminfo command may however be easier to remember using CMD:
systeminfo | find /i "Boot Time"
Or with the help of WMIC:
wmic os get lastbootuptime
There are multiple reasons why you may want to find out the last boot time of a server or a PC, Perhaps your server has been restarted without you knowing, and you want to be able to have a starting time to aid in your search through event logs to see what happened prior to the restart. Maybe you are remotely logged onto a PC which is running slow, but the user hasn’t restarted it for a while.
Anyhow, below is how to check the last boot time using either Powershell or CMD:
Powershell:
Get-WmiObject -class Win32_OperatingSystem | Select-Object __SERVER,@{label=’LastBootUpTime’;expression={$_.ConvertToDateTime($_.LastBootUpTime)}}
Fig. 1.0. powershell
The built in systeminfo command may however be easier to remember using CMD:
systeminfo | find /i "Boot Time"
Or with the help of WMIC:
wmic os get lastbootuptime
Fig. 1.1 systeminfo | find /i "Boot Time"
Fig. 1.2 wmic os get lastbootuptime
Or simply you can type systeminfo on the CMD screen and hit enter key. Then it will show the system information complete.
Fig. 1.3 systeminfo
I have found that this site is very informative, interesting and very well written. keep up the nice high quality writing. Microsoft Stream
ReplyDelete