Bird
0
0

You need to deploy a configuration script to 100 servers efficiently. Which PowerShell method best scales this remote execution?

hard📝 Application Q8 of 15
PowerShell - Remote Management
You need to deploy a configuration script to 100 servers efficiently. Which PowerShell method best scales this remote execution?
AUse Invoke-Command with -ComputerName listing all servers and a script block to run the configuration.
BManually log into each server and run the script locally.
CCopy the script to each server and schedule it to run manually later.
DRun the script only on one server and hope it propagates automatically.
Step-by-Step Solution
Solution:
  1. Step 1: Consider scalability

    Manually logging into each server or copying scripts individually is inefficient for 100 servers.
  2. Step 2: Use remote execution

    Invoke-Command with -ComputerName allows running the script simultaneously on all specified servers.
  3. Step 3: Avoid unreliable methods

    Relying on propagation or manual scheduling is error-prone and slow.
  4. Final Answer:

    Use Invoke-Command with -ComputerName listing all servers and a script block to run the configuration. -> Option A
  5. Quick Check:

    Invoke-Command runs scripts on many servers simultaneously [OK]
Quick Trick: Invoke-Command runs scripts on many servers simultaneously [OK]
Common Mistakes:
  • Running scripts manually on each server
  • Copying scripts without automation
  • Assuming scripts propagate automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes