Upravit

Sdílet prostřednictvím


Gather information by using TSS for user experience-related issues

This article introduces how to gather information by using the TroubleShootingScript (TSS) toolset for user experience-related issues.

Before contacting Microsoft support, you can gather information about your issue.

Prerequisites

Refer to Introduction to TroubleShootingScript toolset (TSS) for prerequisites for the toolset to run properly.

Gather key information before contacting Microsoft support

  1. Download TSS and extract it in the C:\tss folder. If you've downloaded this tool previously, we recommend downloading the latest version. It doesn't automatically update when running.

  2. Open the C:\tss folder from an elevated PowerShell command prompt.

    Note

    Don't use the Windows PowerShell Integrated Scripting Environment (ISE).

  3. Run the following cmdlet and enter A for "Yes to All" for the execution policy change.

    Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
    

Then, run the cmdlets that are listed in the following table according to your issue. The traces are stored in a compressed file in the C:\MS_DATA folder. After a support case is created, this file can be uploaded to the secure workspace for analysis.

Issues Cmdlet(s)
Remote Desktop session issues .\TSS.ps1 -Scenario UEX_General -UEX_Auth -UEX_Logon
Terminal Server licensing issues .\TSS.ps1 -UEX_RDS -Netsh -UEX_Logon -UEX_EVT -UEX_Auth -UEX_WMI -UEX_WinRM
Remote Desktop Session (RDS) connectivity issues .\TSS.ps1 -UEX_RDS -Netsh -UEX_Logon -UEX_EVT -UEX_Auth
Printing issues .\TSS.ps1 -UEX_Print -Procmon -Netsh -PSR
Remote Desktop disconnection issues .\TSS.ps1 -CollectLog UEX_EventLog
.\TSS.ps1 -Scenario UEX_General
Remote Desktop connection configuration issues .\TSS.ps1 -Scenario UEX_ServerManager -UEX_WMI -UEX_RDS -UEX_ServerManager -UEX_WinRM
WMI issues .\TSS.ps1 -Scenario UEX_WMIHighCPU (with high CPU usage)
.\TSS.ps1 -Scenario UEX_WMI (without high CPU usage)
Remote Desktop Client connection issues .\TSS.ps1 -CollectLog -UEX_Basic -UEX_RDS -UEX_WinRM -UEX_WMI
WinRM issues .\TSS.ps1 -Scenario UEX_WinRM
PowerShell issues .\TSS.ps1 -Collectlog NET_PowerShell
.\TSS.ps1 -Scenario UEX_PowerShell