diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Preference_Variables.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Preference_Variables.md index 4c9a42bfb18..683358600a7 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Preference_Variables.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Preference_Variables.md @@ -1,7 +1,7 @@ --- description: Variables that customize the behavior of PowerShell. Locale: en-US -ms.date: 04/06/2024 +ms.date: 06/17/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: about Preference Variables @@ -812,7 +812,7 @@ $Error[0] To display the oldest retained error, type: ```powershell -$Error[($Error.Count -1] +$Error[-1] ``` The **Force** parameter overrides the special formatting of **ErrorRecord**