From d02c59addc24e13da3b8ee5e1a8e7aa27e00c745 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Tue, 23 Aug 2022 10:48:04 -0700 Subject: [PATCH] Update help content about the PowerShell flag `-NonInteractive` (#17952) --- .../resources/ManagedEntranceStrings.resx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.PowerShell.ConsoleHost/resources/ManagedEntranceStrings.resx b/src/Microsoft.PowerShell.ConsoleHost/resources/ManagedEntranceStrings.resx index 778584742b..845fa0cb04 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/resources/ManagedEntranceStrings.resx +++ b/src/Microsoft.PowerShell.ConsoleHost/resources/ManagedEntranceStrings.resx @@ -393,9 +393,10 @@ All parameters are case-insensitive. -NonInteractive | -noni - Does not present an interactive prompt to the user. Any attempts to use - interactive features, like Read-Host or confirmation prompts, result in - statement-terminating errors. + This switch is used to create sessions that shouldn't require user input. + This is useful for scripts that run in scheduled tasks or CI/CD pipelines. + Any attempts to use interactive features, like 'Read-Host' or confirmation + prompts, result in statement terminating errors rather than hanging. -NoProfile | -nop