22external help file : Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33Locale : en-US
44Module Name : Microsoft.PowerShell.Utility
5- ms.date : 12/12/2022
5+ ms.date : 11/06/2025
66online version : https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-uptime?view=powershell-7.4&WT.mc_id=ps-gethelp
77schema : 2.0.0
88title : Get-Uptime
@@ -11,6 +11,7 @@ title: Get-Uptime
1111# Get-Uptime
1212
1313## SYNOPSIS
14+
1415Get the ** TimeSpan** since last boot.
1516
1617## SYNTAX
@@ -88,7 +89,8 @@ Accept wildcard characters: False
8889
8990This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
9091-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
91- -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
92+ -WarningAction, and -WarningVariable. For more information, see
93+ [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
9294
9395## INPUTS
9496
@@ -107,18 +109,13 @@ By default, this cmdlet returns a **TimeSpan** object representing the elapsed t
107109When you use the **Since** parameter, this cmdlet returns a **DateTime** object representing the
108110last boot time.
109111
110- > [!NOTE]
111- > If Windows fast startup is enabled, Windows does not update the value stored in
112- > **LastBootUpTime**. To disable fast startup, run the following command: ` Powercfg -h off`.
113- >
114- > For more information about Windows fast startup, see
115- > [Distinguishing Fast Startup from Wake-from-Hibernation](/windows-hardware/drivers/kernel/distinguishing-fast-startup-from-wake-from-hibernation).
116-
117112## NOTES
118113
119- On Windows, the value returned is the same as the **LastBootUpTime** property of the
114+ This command uses a high resolution timer to calculate the uptime. This time record the number of
115+ ticks since the system started. As a result, the reported uptime may differ slightly from other
116+ methods of calculating system uptime, such as the **LastBootUpTime** property of the
120117**Win32_OperatingSystem** class in WMI.
121118
122119## RELATED LINKS
123120
124- [Win32_OperatingSystem](/windows/win32/cimwin32prov/win32-operatingsystem#properties)
121+ [Win32_OperatingSystem class ](/windows/win32/cimwin32prov/win32-operatingsystem#properties)
0 commit comments