StudyByteLearn
← AZ-802: Administering Windows Server
AZ-802 · Virtual machines · Virtual machines | Manage Hyper-V and guest VM

Practice question 99 of 506 · medium

An administrator has a working PowerShell Direct connection and needs to copy two files and run several commands in the same guest context. Which approach best fits?

Choose the single best answer.

  1. A.Use Get-VM to execute all commands inside Windows
  2. B.Remove guest credentials because host rights authorize guest access
  3. C.Enable a public IP on the guest for each command
  4. D.Create a New-PSSession with VMName and reuse the session
Show the answer and explanation

✓ Correct answer

  • Create a New-PSSession with VMName and reuse the session

A persistent New-PSSession with VMName retains the Direct guest context and supports repeated session operations and file copying. Public IPs are unnecessary for Direct. Get-VM queries virtualization objects, and host rights do not replace valid guest credentials.

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.