From f57f2f6fd301d7bdba5b595afabc5d249a0f56bb Mon Sep 17 00:00:00 2001 From: Carl Walsh Date: Sat, 13 Apr 2024 08:11:58 -0700 Subject: [PATCH] Fix PSNativeCommandUseErrorActionPreference default value (#11026) Fixes #10752 (was partially fixed in #10757) --- reference/docs-conceptual/learn/experimental-features.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/docs-conceptual/learn/experimental-features.md b/reference/docs-conceptual/learn/experimental-features.md index 07fef0b616fd..40a45df07278 100644 --- a/reference/docs-conceptual/learn/experimental-features.md +++ b/reference/docs-conceptual/learn/experimental-features.md @@ -301,7 +301,7 @@ controls how native commands errors are handled in PowerShell. This allows nativ to produce error objects that are added to the PowerShell error stream and may terminate execution of the script without extra handling. -`$PSNativeCommandUseErrorActionPreference` is set to `$true` by default. With the preference set to +`$PSNativeCommandUseErrorActionPreference` is set to `$false` by default. With the preference set to `$true` you get the following behavior: - When `$ErrorActionPreference = 'Stop'`, scripts will break when a native command returns a