diff --git a/reference/7.2/Microsoft.PowerShell.Utility/Write-Error.md b/reference/7.2/Microsoft.PowerShell.Utility/Write-Error.md index d89ea39b2506..8b7c5b83ffd7 100644 --- a/reference/7.2/Microsoft.PowerShell.Utility/Write-Error.md +++ b/reference/7.2/Microsoft.PowerShell.Utility/Write-Error.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: 10/14/2020 +ms.date: 08/03/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/write-error?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 title: Write-Error @@ -26,7 +26,7 @@ Write-Error [-Message] [-Category ] [-ErrorId ] ### WithException ``` -Write-Error -Exception [[-Message] ] [-Category ] [-ErrorId ] +Write-Error [-Exception] [[-Message] ] [-Category ] [-ErrorId ] [-TargetObject ] [-RecommendedAction ] [-CategoryActivity ] [-CategoryReason ] [-CategoryTargetName ] [-CategoryTargetType ] [] ``` @@ -34,7 +34,7 @@ Write-Error -Exception [[-Message] ] [-Category [-RecommendedAction ] [-CategoryActivity ] +Write-Error [-ErrorRecord] [-RecommendedAction ] [-CategoryActivity ] [-CategoryReason ] [-CategoryTargetName ] [-CategoryTargetType ] [] ``` @@ -256,7 +256,7 @@ Parameter Sets: ErrorRecord Aliases: Required: True -Position: Named +Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -275,7 +275,7 @@ Parameter Sets: WithException Aliases: Required: True -Position: Named +Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/reference/docs-conceptual/learn/experimental-features.md b/reference/docs-conceptual/learn/experimental-features.md index fbe13f2bc937..8dae9b1adda3 100644 --- a/reference/docs-conceptual/learn/experimental-features.md +++ b/reference/docs-conceptual/learn/experimental-features.md @@ -119,7 +119,7 @@ UnderlineOff Property string UnderlineOff {get;} The base members return strings of ANSI escape sequences mapped to their names. The values are settable to allow customization. -For more information, see [about_Automatic_Variables](/powershell/module/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md) +For more information, see [about_Automatic_Variables](/powershell/module/Microsoft.PowerShell.Core/About/about_Automatic_Variables) > [!NOTE] > For C# developers, you can access `PSStyle` as a singleton. Usage will look like this: @@ -173,7 +173,7 @@ enables coloring of specific file types. - `$PSStyle.FileInfo.Extension` - Use this member to define colors for different file extensions. The **Extension** member pre-includes extensions for archive and PowerShell files. -For more information, see [about_Automatic_Variables](/powershell/module/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md) +For more information, see [about_Automatic_Variables](/powershell/module/Microsoft.PowerShell.Core/About/about_Automatic_Variables) > [!NOTE] > You must have the **PSAnsiRendering** experimental feature enabled to use this feature.