From fffb56f3f48e7e261ee51ed12ed377a936e4ebf3 Mon Sep 17 00:00:00 2001 From: Carl Walsh Date: Sat, 13 Apr 2024 07:38:07 -0700 Subject: [PATCH] Fix PSNativeCommandUseErrorActionPreference default value 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