Skip to content

Commit f996be7

Browse files
authored
Fixes #4487 - Get-UpTime shows incorrect boot time (#4865)
* Fixes #4487 - Get-UpTime shows incorrect boot time * fix platyps schema exception * feedback
1 parent d57272c commit f996be7

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

reference/6/Microsoft.PowerShell.Utility/Get-Uptime.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,21 @@ This is the default return type when no parameters are used.
9999
100100
### System.DateTime
101101
102-
This is the type return when using the **Since** parameter.
102+
This type is returned when using the **Since** parameter.
103+
104+
> [!NOTE]
105+
> If Windows fast startup is enabled, Windows does not update the value stored in
106+
> **LastBootUpTime**. To disable fast startup, run the following command: `Powercfg -h off`.
107+
>
108+
> For more information about Windows fast startup, see
109+
> [Distinguishing Fast Startup from Wake-from-Hibernation](/windows-hardware/drivers/kernel/distinguishing-fast-startup-from-wake-from-hibernation).
103110

104111
## NOTES
105112

106-
On Windows, the value returned will be the same as the **LastBootUpTime** property of the **Win32_OperatingSystem** class in WMI.
113+
On Windows, the value returned is the same as the **LastBootUpTime** property of the
114+
**Win32_OperatingSystem** class in WMI.
107115

108116
## RELATED LINKS
109117

118+
[Win32_OperatingSystem](/windows/win32/cimwin32prov/win32-operatingsystem#properties)
119+

reference/7/Microsoft.PowerShell.Utility/Get-Uptime.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,21 @@ This is the default return type when no parameters are used.
9999
100100
### System.DateTime
101101
102-
This is the type return when using the **Since** parameter.
102+
This type is returned when using the **Since** parameter.
103+
104+
> [!NOTE]
105+
> If Windows fast startup is enabled, Windows does not update the value stored in
106+
> **LastBootUpTime**. To disable fast startup, run the following command: `Powercfg -h off`.
107+
>
108+
> For more information about Windows fast startup, see
109+
> [Distinguishing Fast Startup from Wake-from-Hibernation](/windows-hardware/drivers/kernel/distinguishing-fast-startup-from-wake-from-hibernation).
103110

104111
## NOTES
105112

106-
On Windows, the value returned will be the same as the **LastBootUpTime** property of the **Win32_OperatingSystem** class in WMI.
113+
On Windows, the value returned is the same as the **LastBootUpTime** property of the
114+
**Win32_OperatingSystem** class in WMI.
107115

108116
## RELATED LINKS
109117

118+
[Win32_OperatingSystem](/windows/win32/cimwin32prov/win32-operatingsystem#properties)
119+

0 commit comments

Comments
 (0)