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

Practice question 98 of 506 · easy

APP01 is a locally running Windows Server 2025 guest on HV01. Its virtual NIC configuration is broken, but an administrator has host Hyper-V rights and valid guest credentials. Which command runs a guest diagnostic without using that NIC?

Choose the single best answer.

  1. A.Enter-PSSession -ComputerName 'APP01'
  2. B.Get-VM -ComputerName 'HV01' -Name 'APP01'
  3. C.Invoke-Command -ComputerName 'APP01' -ScriptBlock { Get-NetIPConfiguration }
  4. D.Invoke-Command -VMName 'APP01' -Credential $cred -ScriptBlock { Get-NetIPConfiguration }
Show the answer and explanation

✓ Correct answer

  • Invoke-Command -VMName 'APP01' -Credential $cred -ScriptBlock { Get-NetIPConfiguration }

Invoke-Command with VMName uses PowerShell Direct on the local host to execute inside the guest. Get-VM queries host VM objects. Invoke-Command and Enter-PSSession with ComputerName rely on the guest's network remoting path, which is broken here.

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.