Bird
0
0

Which of the following commands correctly initiates an interactive remote session to a computer named Server01 using Enter-PSSession?

easy📝 Syntax Q3 of 15
PowerShell - Remote Management
Which of the following commands correctly initiates an interactive remote session to a computer named Server01 using Enter-PSSession?
AEnter-PSSession -ComputerName Server01
BInvoke-Command -ComputerName Server01 -ScriptBlock { Enter-PSSession }
CNew-PSSession -Name Server01
DStart-RemoteSession -Computer Server01
Step-by-Step Solution
Solution:
  1. Step 1: Identify the cmdlet for interactive remote session

    Enter-PSSession is used to start an interactive session with a remote computer.
  2. Step 2: Check the correct parameter

    The -ComputerName parameter specifies the target computer.
  3. Final Answer:

    Enter-PSSession -ComputerName Server01 -> Option A
  4. Quick Check:

    Only Enter-PSSession -ComputerName Server01 uses Enter-PSSession correctly [OK]
Quick Trick: Use Enter-PSSession with -ComputerName for remote sessions [OK]
Common Mistakes:
  • Confusing Enter-PSSession with Invoke-Command
  • Using incorrect parameters like -Computer instead of -ComputerName
  • Assuming New-PSSession starts an interactive session directly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes