Bird
0
0

You want to run commands on multiple remote computers interactively. Which approach using Enter-PSSession is best?

hard📝 Application Q8 of 15
PowerShell - Remote Management
You want to run commands on multiple remote computers interactively. Which approach using Enter-PSSession is best?
AUse Enter-PSSession with multiple computer names at once
BRun Enter-PSSession separately for each computer in different windows
CUse Enter-PSSession with a list piped in
DUse Enter-PSSession with -FilePath to run a script on all
Step-by-Step Solution
Solution:
  1. Step 1: Understand Enter-PSSession limitations

    Enter-PSSession supports only one interactive session at a time per window.
  2. Step 2: Identify best practice

    Opening separate sessions in different windows for each computer is the correct approach.
  3. Final Answer:

    Run Enter-PSSession separately for each computer in different windows -> Option B
  4. Quick Check:

    One interactive session per window = separate runs [OK]
Quick Trick: One Enter-PSSession per window for multiple computers [OK]
Common Mistakes:
  • Trying to connect to multiple computers in one session
  • Piping list to Enter-PSSession (not supported)
  • Using -FilePath to run scripts interactively

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes