StudyByteLearn
← AZ-802: Administering Windows Server
AZ-802 · Hybrid server management · Hybrid server management | Configure remote management for Windows Server instances in a hybrid environment

Practice question 57 of 506 · easy

An administrator wants to run the same read-only service query on ten Windows servers and collect results. Which command is the most direct fit?

Choose the single best answer.

  1. A.Create New-PSSession objects but never execute the query within them
  2. B.Run Get-Service only on the local management computer
  3. C.Invoke-Command with the server list and a Get-Service script block
  4. D.Enter-PSSession with one computer name and no script block
Show the answer and explanation

✓ Correct answer

  • Invoke-Command with the server list and a Get-Service script block

Invoke-Command runs the query on the specified remote computers and returns results. Enter-PSSession creates a single interactive session; local Get-Service examines the local host. Creating sessions alone does not execute the requested query.

Read the source reference

Read and review here, or open the app to practise and save your results on this device.

Unofficial study material, independently written and not affiliated with or endorsed by Microsoft. These are original learning questions, not actual exam questions. Product support and exam scope can change; a practice percentage is not a Microsoft exam scaled score.