Bird
0
0

Which of the following is the correct syntax to enable PowerShell remoting without any confirmation prompts?

easy📝 Syntax Q12 of 15
PowerShell - Remote Management
Which of the following is the correct syntax to enable PowerShell remoting without any confirmation prompts?
AEnable-PSRemoting -Confirm:$false
BEnable-PSRemoting -SkipPrompt
CEnable-PSRemoting -Force
DEnable-PSRemoting /quiet
Step-by-Step Solution
Solution:
  1. Step 1: Identify the parameter to skip confirmation and check others

    The -Force parameter is used in PowerShell cmdlets to suppress prompts and force the action. The other options use incorrect or non-existent parameters for this cmdlet.
  2. Final Answer:

    Enable-PSRemoting -Force -> Option C
  3. Quick Check:

    -Force skips prompts [OK]
Quick Trick: Use -Force to skip prompts in PowerShell commands [OK]
Common Mistakes:
  • Using -Confirm:$false which is not valid here
  • Assuming /quiet works like in other shells
  • Inventing parameters like -SkipPrompt

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes