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) diff --git a/reference/docs-conceptual/community/2025-updates.md b/reference/docs-conceptual/community/2025-updates.md index 7ea36460e41..8c103aeafa6 100644 --- a/reference/docs-conceptual/community/2025-updates.md +++ b/reference/docs-conceptual/community/2025-updates.md @@ -1,6 +1,6 @@ --- description: List of changes to the PowerShell documentation for 2025 -ms.date: 09/02/2025 +ms.date: 11/06/2025 title: What's New in PowerShell-Docs for 2025 --- # What's new in PowerShell Docs for 2025 @@ -14,6 +14,37 @@ get started. [01]: contributing/overview.md +## 2025-October + +Content updates + +- [What's New in PowerShell 7.6](/powershell/scripting/whats-new/what-s-new-in-powershell-76) +- New PlatyPS documentation + - [Types of help in PowerShell](/powershell/utility-modules/platyps/types-of-help) + - [Create new command help Markdown using PlatyPS](/powershell/utility-modules/platyps/step-1-create-new-markdown-help) + - [Update Markdown help files using Microsoft.PowerShell.PlatyPS](/powershell/utility-modules/platyps/step-1-update-markdown-help) + - [Edit Markdown help files](/powershell/utility-modules/platyps/step-2-edit-markdown-help) + - [Test Markdown help files](/powershell/utility-modules/platyps/step-3-test-markdown-help) + - [Convert and publish the help files](/powershell/utility-modules/platyps/step-4-convert-publish-help) + +GitHub stats + +- 18 PRs merged (3 from Community) +- 32 issues opened (29 from Community) +- 34 issues closed (29 Community issues closed) + +Top Community Contributors + +The following people contributed to PowerShell docs this month by submitting pull requests or +filing issues. Thank you! + +| GitHub Id | PRs merged | Issues opened | +| -------------- | :--------: | :-----------: | +| OscarFalck17 | 1 | | +| StuartMosquera | 1 | | +| kMitty | | 2 | +| MartinGC94 | | 2 | + ## 2025-September Content updates diff --git a/reference/docs-conceptual/community/hall-of-fame.md b/reference/docs-conceptual/community/hall-of-fame.md index 7059f56ead4..19b04a9a562 100644 --- a/reference/docs-conceptual/community/hall-of-fame.md +++ b/reference/docs-conceptual/community/hall-of-fame.md @@ -1,6 +1,6 @@ --- description: List of the GitHub users that have the most contributions to the PowerShell-Doc project. -ms.date: 10/01/2025 +ms.date: 11/06/2025 title: Community contributor Hall of Fame --- # Community Contributor Hall of Fame @@ -17,7 +17,7 @@ Pull Requests help us fix those issues and make the documentation better for eve | PRs Merged | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | Grand Total | | ------------------ | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ----------: | -| Community | 3 | 194 | 446 | 467 | 321 | 160 | 99 | 121 | 108 | 81 | 138 | 2138 | +| Community | 3 | 194 | 446 | 467 | 321 | 160 | 98 | 121 | 108 | 81 | 142 | 2141 | | matt9ucci | | | 157 | 80 | 30 | 1 | 6 | | | | | 274 | | nschonni | | | | 14 | 138 | 10 | | | | | | 162 | | kiazhi | | 25 | 79 | 12 | | | | | | | | 116 | @@ -48,19 +48,19 @@ GitHub issues help us identify errors and gaps in our documentation. | Issues Opened | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | Grand Total | | ------------------ | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ----------: | -| Community | 3 | 54 | 95 | 210 | 562 | 557 | 363 | 225 | 270 | 220 | 117 | 2676 | +| Community | 3 | 54 | 95 | 210 | 562 | 557 | 363 | 225 | 270 | 220 | 134 | 2693 | | mklement0 | | | 19 | 60 | 56 | 61 | 28 | 8 | 20 | 24 | 2 | 278 | | ehmiiz | | | | | | | | 20 | 14 | | | 34 | | iSazonov | | | 1 | 4 | 10 | 8 | 4 | 3 | | 1 | | 31 | -| iRon7 | | | | | | 2 | 2 | 2 | 10 | 8 | 3 | 27 | +| iRon7 | | | | | | 2 | 2 | 2 | 10 | 8 | 4 | 28 | | jszabo98 | | | | 2 | 15 | 6 | 1 | | 1 | 2 | | 27 | | juvtib | | | | | | 15 | 7 | | | | | 22 | | surfingoldelephant | | | | | | | | | | 6 | 15 | 21 | | doctordns | | | 5 | 3 | 5 | 7 | 1 | | | | | 21 | | peetrike | | | | 1 | | 4 | 2 | 6 | 4 | 3 | | 20 | | JustinGrote | | | | 1 | 3 | 6 | 1 | 1 | 2 | 2 | 2 | 18 | +| kilasuit | | | | | 3 | 2 | 1 | 4 | 1 | 3 | 4 | 18 | | vexx32 | | | | 3 | 11 | | | 3 | | | | 17 | -| kilasuit | | | | | 3 | 2 | 1 | 4 | 1 | 3 | 3 | 17 | | KirkMunro | | | | 7 | 7 | 1 | | | | | | 15 | | alexandair | | 9 | 4 | 2 | | | | | | | | 15 | | clamb123 | | | | | | | 14 | | | | | 14 | diff --git a/reference/docs-conceptual/learn/ps101/10-script-modules.md b/reference/docs-conceptual/learn/ps101/10-script-modules.md index 7dbf1b21a52..bd39d1f7d07 100644 --- a/reference/docs-conceptual/learn/ps101/10-script-modules.md +++ b/reference/docs-conceptual/learn/ps101/10-script-modules.md @@ -356,10 +356,10 @@ Sometimes, your module might include helper functions you don't want to expose t private functions are used internally by other functions in the module but aren't exposed to users. There are a few ways to handle this scenario. -If you're not following best practices and only have a `.psm1` file without a proper module -structure, your only option is to control visibility using the `Export-ModuleMember` cmdlet. This -option lets you explicitly define which functions should be exposed directly from within the `.psm1` -script module file, keeping everything else private by default. +If you're not following best practices and only have a `.psm1` file without a module manifest, your +only option is to control visibility using the `Export-ModuleMember` cmdlet. This option lets you +explicitly define which functions should be exposed directly from within the `.psm1` script module +file, keeping everything else private by default. In the following example, only the `Get-MrPSVersion` function is exposed to users of your module, while the `Get-MrComputerName` function remains accessible internally to other functions within the