B
Bertram Moshier
Hello,
I'm running on Windows 10 Pro x64 1909 (OS Build 18363.535).
When I use various methods to look at the boot time and/or up time, I'm told a date and/or up time that is clearly incorrect. I powered down my system earlier today (around Noon on December 27, 2019) and just powered it on several minutes before starting this thread.
The actual time should be only minutes not days or even hours.
Again this was not a reboot, but from a powered down state.
Just FYI: The time of day is correct (e.g. December 27, 2019 at 19:07 CST).
Anyone else seeing this issue after a power on? After a reboot? (Going to try reboot next.) Have a reason for this issue? Solution? etc!?
Thank you.
UPDATE:
I did a reboot and the boot time and uptime are correct.
I did a shutdown, waited, powered on, and the boot time and uptime are incorrect.
PowerShell:
PS C:\Users\Bertr>
PS C:\Users\Bertr> Function Get-Uptime {
>> Param ( [string] $ComputerName = $env:COMPUTERNAME )
>> $os = Get-WmiObject win32_operatingsystem -ComputerName $ComputerName -ErrorAction SilentlyContinue
>> if ($os.LastBootUpTime) {
>> $uptime = (Get-Date) - $os.ConvertToDateTime($os.LastBootUpTime)
>> Write-Output ("Last boot: " + $os.ConvertToDateTime($os.LastBootUpTime) )
>> Write-Output ("Uptime : " + $uptime.Days + " Days " + $uptime.Hours + " Hours " + $uptime.Minutes + " Minutes" )
>> }
>> else {
>> Write-Warning "Unable to connect to $computername"
>> }
>> }
>>
>> Get-Uptime -ComputerName localhost
Last boot: 12/21/2019 16:37:36
Uptime : 6 Days 2 Hours 23 Minutes
Net Statistics Workstation:
12/27/2019 18:45:21.96 C:\Users\Admin>net statistics workstation
Workstation Statistics for \\CAITSITH
Statistics since 12/21/2019 16:37:47
Bytes received 0
Server Message Blocks (SMBs) received 1446
Bytes transmitted 0
Server Message Blocks (SMBs) transmitted 0
Read operations 0
Write operations 0
Raw reads denied 0
Raw writes denied 0
Network errors 0
Connections made 0
Reconnections made 0
Server disconnects 0
Sessions started 0
Hung sessions 0
Failed sessions 0
Failed operations 0
Use count 0
Failed use count 0
The command completed successfully.
Task Manager:
Continue reading...
I'm running on Windows 10 Pro x64 1909 (OS Build 18363.535).
When I use various methods to look at the boot time and/or up time, I'm told a date and/or up time that is clearly incorrect. I powered down my system earlier today (around Noon on December 27, 2019) and just powered it on several minutes before starting this thread.
- Task Manger shows my Uptime as 6 days, 2 hours, 14 minutes, 16 seconds.
- Net Statistics shows the boot time as December 21, 2019 at 16:37:47
- Using Powershell, I get:
- Last boot: 12/21/2019 16:37:36
Uptime : 6 Days 2 Hours 23 Minutes
The actual time should be only minutes not days or even hours.
Again this was not a reboot, but from a powered down state.
Just FYI: The time of day is correct (e.g. December 27, 2019 at 19:07 CST).
Anyone else seeing this issue after a power on? After a reboot? (Going to try reboot next.) Have a reason for this issue? Solution? etc!?
Thank you.
UPDATE:
I did a reboot and the boot time and uptime are correct.
I did a shutdown, waited, powered on, and the boot time and uptime are incorrect.
PowerShell:
PS C:\Users\Bertr>
PS C:\Users\Bertr> Function Get-Uptime {
>> Param ( [string] $ComputerName = $env:COMPUTERNAME )
>> $os = Get-WmiObject win32_operatingsystem -ComputerName $ComputerName -ErrorAction SilentlyContinue
>> if ($os.LastBootUpTime) {
>> $uptime = (Get-Date) - $os.ConvertToDateTime($os.LastBootUpTime)
>> Write-Output ("Last boot: " + $os.ConvertToDateTime($os.LastBootUpTime) )
>> Write-Output ("Uptime : " + $uptime.Days + " Days " + $uptime.Hours + " Hours " + $uptime.Minutes + " Minutes" )
>> }
>> else {
>> Write-Warning "Unable to connect to $computername"
>> }
>> }
>>
>> Get-Uptime -ComputerName localhost
Last boot: 12/21/2019 16:37:36
Uptime : 6 Days 2 Hours 23 Minutes
Net Statistics Workstation:
12/27/2019 18:45:21.96 C:\Users\Admin>net statistics workstation
Workstation Statistics for \\CAITSITH
Statistics since 12/21/2019 16:37:47
Bytes received 0
Server Message Blocks (SMBs) received 1446
Bytes transmitted 0
Server Message Blocks (SMBs) transmitted 0
Read operations 0
Write operations 0
Raw reads denied 0
Raw writes denied 0
Network errors 0
Connections made 0
Reconnections made 0
Server disconnects 0
Sessions started 0
Hung sessions 0
Failed sessions 0
Failed operations 0
Use count 0
Failed use count 0
The command completed successfully.
Task Manager:
Continue reading...