diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Get-Uptime.md b/reference/7.4/Microsoft.PowerShell.Utility/Get-Uptime.md index 9fe98fbe8d0..49f0d7dbef3 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Get-Uptime.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Get-Uptime.md @@ -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 @@ -11,6 +11,7 @@ title: Get-Uptime # Get-Uptime ## SYNOPSIS + Get the **TimeSpan** since last boot. ## SYNTAX @@ -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 @@ -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) diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Get-Uptime.md b/reference/7.5/Microsoft.PowerShell.Utility/Get-Uptime.md index 2df8c994303..914b41748ba 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Get-Uptime.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Get-Uptime.md @@ -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 @@ -11,6 +11,7 @@ title: Get-Uptime # Get-Uptime ## SYNOPSIS + Get the **TimeSpan** since last boot. ## SYNTAX @@ -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 @@ -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) diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Get-Uptime.md b/reference/7.6/Microsoft.PowerShell.Utility/Get-Uptime.md index 2f01c874f32..b0ccfa753b3 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Get-Uptime.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Get-Uptime.md @@ -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 @@ -11,6 +11,7 @@ title: Get-Uptime # Get-Uptime ## SYNOPSIS + Get the **TimeSpan** since last boot. ## SYNTAX @@ -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 @@ -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)