AZ-140 practice question 34 of 35

You have a Windows Virtual Desktop host pool named Pool1 that runs Windows 10 Enterprise multi- session hosts. You need to use Performance Monitor to troubleshoot a low frame quality issue that is affecting a current use session to Pool1. What should you run to retrieve the user session ID?

Full set: 286 questions

Domain Monitor and maintain an Azure Virtual Desktop infrastructure

Answer options
A: Get-ComputerInfo
B: qwinsta Correct answer
C: whoami
D: Get-LocalUser
Correct Answer:
B. qwinsta
Explanation

To troubleshoot performance issues for a specific user on a Windows 10 Enterprise multi-session host, you must first identify the user's session ID. The qwinsta (Query Session) command-line utility is the standard tool for this purpose. It lists all active and disconnected user sessions on a Remote Desktop Session Host, including the username and the corresponding session ID. This ID can then be used in Performance Monitor to isolate and analyze performance counters, such as "User Input Delay per Session" or "Frames Per Second," specifically for the affected user's session, which is essential for diagnosing the low frame quality issue.

Why Incorrect

A. Get-ComputerInfo: This PowerShell cmdlet retrieves system-wide hardware and operating system properties, not information about active user sessions.
C. whoami: This command displays the user context of the current command prompt session, not the session IDs of all users logged onto the host.
D. Get-LocalUser: This PowerShell cmdlet lists local user accounts on the machine; it does not provide information about active sessions or their IDs. ---

References

1. Microsoft Documentation

qwinsta Command-Line Reference: "Displays information about user sessions on a Remote Desktop Session Host server. ... To find out the session ID for the session whose graphics are being virtualized

use the qwinsta command-line tool."

Source: Microsoft Docs

"qwinsta".

2. Microsoft Documentation

Troubleshoot graphics performance in Azure Virtual Desktop: "To start

use the qwinsta command in a command prompt to view the counters. ... After you've identified the session ID of the user who's experiencing issues

run the following command to find out the name of the process that's using up the FPS." This document explicitly links qwinsta to obtaining the session ID for performance troubleshooting in AVD.

Source: Microsoft Learn

"Troubleshoot graphics performance in Azure Virtual Desktop

" Section: "Identify graphics performance issues."

3. Microsoft Documentation

Performance counters for troubleshooting: "To investigate

use Performance Monitor on the VM to look at the User Input Delay per Session counter. You'll need the session ID to see the data for each user. You can get the session ID by running the qwinsta command."

Source: Microsoft Learn

"Azure Virtual Desktop RDP Shortpath

" Section: "Performance counters for troubleshooting."

4. Microsoft PowerShell Documentation

Get-ComputerInfo: "The Get-ComputerInfo cmdlet gets a consolidated object of system and operating system properties." This confirms it is for system-level information

not user sessions.

Source: Microsoft Learn

"Get-ComputerInfo."

Scroll to Top