mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update help content about the PowerShell flag -NonInteractive (#17952)
This commit is contained in:
@@ -393,9 +393,10 @@ All parameters are case-insensitive.</value>
|
||||
|
||||
-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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user