Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions reference/7.4/Microsoft.PowerShell.Utility/Get-Uptime.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 12/12/2022
ms.date: 11/06/2025
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-uptime?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Get-Uptime
Expand All @@ -11,6 +11,7 @@ title: Get-Uptime
# Get-Uptime

## SYNOPSIS

Get the **TimeSpan** since last boot.

## SYNTAX
Expand Down Expand Up @@ -88,7 +89,8 @@ Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
-WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

Expand All @@ -107,18 +109,13 @@ By default, this cmdlet returns a **TimeSpan** object representing the elapsed t
When you use the **Since** parameter, this cmdlet returns a **DateTime** object representing the
last boot time.

> [!NOTE]
> If Windows fast startup is enabled, Windows does not update the value stored in
> **LastBootUpTime**. To disable fast startup, run the following command: `Powercfg -h off`.
>
> For more information about Windows fast startup, see
> [Distinguishing Fast Startup from Wake-from-Hibernation](/windows-hardware/drivers/kernel/distinguishing-fast-startup-from-wake-from-hibernation).

## NOTES

On Windows, the value returned is the same as the **LastBootUpTime** property of the
This command uses a high resolution timer to calculate the uptime. This time record the number of
ticks since the system started. As a result, the reported uptime may differ slightly from other
methods of calculating system uptime, such as the **LastBootUpTime** property of the
**Win32_OperatingSystem** class in WMI.

## RELATED LINKS

[Win32_OperatingSystem](/windows/win32/cimwin32prov/win32-operatingsystem#properties)
[Win32_OperatingSystem class](/windows/win32/cimwin32prov/win32-operatingsystem#properties)
19 changes: 8 additions & 11 deletions reference/7.5/Microsoft.PowerShell.Utility/Get-Uptime.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 12/12/2022
ms.date: 11/06/2025
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-uptime?view=powershell-7.5&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Get-Uptime
Expand All @@ -11,6 +11,7 @@ title: Get-Uptime
# Get-Uptime

## SYNOPSIS

Get the **TimeSpan** since last boot.

## SYNTAX
Expand Down Expand Up @@ -88,7 +89,8 @@ Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
-WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

Expand All @@ -107,18 +109,13 @@ By default, this cmdlet returns a **TimeSpan** object representing the elapsed t
When you use the **Since** parameter, this cmdlet returns a **DateTime** object representing the
last boot time.

> [!NOTE]
> If Windows fast startup is enabled, Windows does not update the value stored in
> **LastBootUpTime**. To disable fast startup, run the following command: `Powercfg -h off`.
>
> For more information about Windows fast startup, see
> [Distinguishing Fast Startup from Wake-from-Hibernation](/windows-hardware/drivers/kernel/distinguishing-fast-startup-from-wake-from-hibernation).

## NOTES

On Windows, the value returned is the same as the **LastBootUpTime** property of the
This command uses a high resolution timer to calculate the uptime. This time record the number of
ticks since the system started. As a result, the reported uptime may differ slightly from other
methods of calculating system uptime, such as the **LastBootUpTime** property of the
**Win32_OperatingSystem** class in WMI.

## RELATED LINKS

[Win32_OperatingSystem](/windows/win32/cimwin32prov/win32-operatingsystem#properties)
[Win32_OperatingSystem class](/windows/win32/cimwin32prov/win32-operatingsystem#properties)
19 changes: 8 additions & 11 deletions reference/7.6/Microsoft.PowerShell.Utility/Get-Uptime.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 12/12/2022
ms.date: 11/06/2025
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-uptime?view=powershell-7.6&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Get-Uptime
Expand All @@ -11,6 +11,7 @@ title: Get-Uptime
# Get-Uptime

## SYNOPSIS

Get the **TimeSpan** since last boot.

## SYNTAX
Expand Down Expand Up @@ -88,7 +89,8 @@ Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
-WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

Expand All @@ -107,18 +109,13 @@ By default, this cmdlet returns a **TimeSpan** object representing the elapsed t
When you use the **Since** parameter, this cmdlet returns a **DateTime** object representing the
last boot time.

> [!NOTE]
> If Windows fast startup is enabled, Windows does not update the value stored in
> **LastBootUpTime**. To disable fast startup, run the following command: `Powercfg -h off`.
>
> For more information about Windows fast startup, see
> [Distinguishing Fast Startup from Wake-from-Hibernation](/windows-hardware/drivers/kernel/distinguishing-fast-startup-from-wake-from-hibernation).

## NOTES

On Windows, the value returned is the same as the **LastBootUpTime** property of the
This command uses a high resolution timer to calculate the uptime. This time record the number of
ticks since the system started. As a result, the reported uptime may differ slightly from other
methods of calculating system uptime, such as the **LastBootUpTime** property of the
**Win32_OperatingSystem** class in WMI.

## RELATED LINKS

[Win32_OperatingSystem](/windows/win32/cimwin32prov/win32-operatingsystem#properties)
[Win32_OperatingSystem class](/windows/win32/cimwin32prov/win32-operatingsystem#properties)