- How to enable logging in WDS in Windows
- Introduction
- Overview
- General WDS server health
- WDS server component
- Obtain trace logs for Windows Server
- WDS management components
- Enable tracing
- For the management component
- For the MMC component
- WDS legacy components
- WDS client components
- Setup logs from the client computer
- Useful log files for troubleshooting RDS issues
- Introduction
- How to enable logs
- How to collect logs
- How to Log off all Terminal Server Session Users from a Command Prompt
- Summary
- More information
- Настройка удаленного управления в диспетчер сервера Configure remote Management in Server Manager
- Включение и отключение удаленного управления Enabling or disabling remote management
How to enable logging in WDS in Windows
This article describes how to enable logging in Windows Deployment Services (WDS) in Windows Server.
Original product version: В Windows Server 2012 R2
Original KB number: В 936625
This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, see Windows registry information for advanced users.
Introduction
This article discusses how to enable logging in WDS in Windows Server. Additionally, this article describes how to gather data in WDS.
You can use this information to help troubleshoot issues that you may experience in WDS.
Overview
Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
Each WDS component has a mechanism that you can enable for logging and for tracing. You can then analyze the results for troubleshooting. Use the information in the following sections to enable logging and tracing for WDS components.
General WDS server health
Type the following command to generate general server health information:
This command causes general server health information to be logged in the Application log and in the System log.
WDS server component
Type the following command to generate health information about the WDS server component:
This command causes WDS information to be logged in the Application log and in the System log.
Obtain trace logs for Windows Server
To obtain trace information for Windows Server, do the following:
- Open Event Viewer (eventvwr).
- Browse to Windows Logs\Applications and Services Logs\Microsoft\Windows\Deployment-Services-Diagnostics.
- Right-click the channel and choose Enable Log.
Then, configure the components that you want to be logged by setting one or more of the following registry keys to a 0 value.
WDS servers also support the following additional tracing:
You can set these registry keys to the following values to control what is included:
- 7F0000: This value includes packet tracing and protocol tracing.
- 3F0000: This value excludes packet tracing.
- 3E0000: This value excludes packet tracing and protocol tracing. By default, this value is used.
A tracing process may affect performance. Therefore, we recommend that you disable the tracing functionality when you do not have to generate a log.
After you set this registry entry, trace information for the WDS server component is logged in the following file:%windir%\Tracing\wdsserver.log
WDS management components
Type the following command to generate management component health information:
This command causes WDS component health information to be logged in the Application log and in the System log.
Enable tracing
To obtain trace information, you must enable tracing in the WDS management component and in the WDS Microsoft Management Console (MMC) component. To do this, set the following registry entries:
For the management component
- Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\WDSMGMT
- Name: EnableFileTracing
- Value type: REG_DWORD
- Value data: 1
For the MMC component
- Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\WDSMMC
- Name: EnableFileTracing
- Value type: REG_DWORD
- Value data: 1
After you set these registry entries, trace information for the WDS management component is logged in the %windir%\Tracing\wdsmgmt.log file.
Additionally, trace information for the WDS MMC component is logged in the %windir%\Tracing\wdsmmc.log file.
Although the WDS MMC component and the WDSUTIL component share the same API layer, MMC sometimes adds processing and functionality. If an error occurs, it is frequently worthwhile to use WDSUTIL to try to reproduce the failure. WDSUTIL may help you determine whether the error is local to MMC or whether the error is a general management API failure. Frequently, the WDSUTIL component provides more detailed error output when tracing is not enabled. Where applicable, use the following options to obtain extra information:
WDS legacy components
If you perform legacy management functions, set the following registry entry to enable tracing in the RISetup component:
- Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\RISetup
- Name: EnableFileTracing
- Value type: REG_DWORD
- Value data: 1
To obtain the trace log in the WDSCapture operation, follow these steps:
Start the Capture Windows PE boot image.
When the Capture Wizard starts, press SHIFT+F10 to open a command prompt.
Enable tracing in the WDSCapture component. To do this, follow these steps:
- Start Registry Editor.
- Set the following registry entry to enable tracing in the WDSCapture component:
- Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\WDSCapture
- Name: EnableFileTracing
- Value type: REG_DWORD
- Value data: 1
Start a second instance of the WDSCapture component. Then, reproduce the problem by using the second instance of WDSCapture.
Don’t close the original instance of WDSCapture. If you close the original instance of WDSCapture, Windows PE restarts. Instead, press ALT+TAB to switch between the instances of WDSCapture.The following trace log file is generated: X:\Windows\Tracing\WDSCapture.log.
WDS client components
To turn on the client logging functionality, run the following command on the WDS server:
Then, run the following command on the WDS server to change which events are logged:
Each category includes all the events from the previous categories.
The following are the definitions of the logging levels:
- The NONE logging level disables the logging functionality. By default, this logging level is used.
- The ERRORS logging level logs only errors.
- The WARNINGS logging level logs warnings and errors.
- The INFO logging level logs errors, warnings, and informational events. This logging level is the highest logging level.
To view the event logs, follow these steps:
- Open Server Manager, and then click Diagnostics.
- Click Event Viewer.
- Click Applications and Services Logs.
- Click Microsoft, click Windows, and then click Deployment-Services-Diagnostics.
In the tree structure of event logs, the Admin log contains all the errors, and the Operational log contains the information messages. The following are the definitions of the architectures that are listed for some errors in these logs:
- The Architecture 0 is the x86 processor architecture.
- The Architecture 6 is the IA-64 processor architecture.
- The Architecture 9 is the x64 processor architecture.
Setup logs from the client computer
The location of the setup logs depends on when the failure occurs.
If the failure occurs in Windows PE before the disk configuration page of the WDS client is completed, you can find the logs at the X:\Windows\Panther folder. Use Shift+F10 to open a command prompt, and then change the directory to the location.
If the failure occurs in Windows PE after the disk configuration page of the WDS client is completed, you can find the logs on the local disk volume at the $Windows.
BT\Sources\Panther folder. The local disk volume is usually the drive C. Use Shift+F10 to open a command prompt, and then change the directory to the location.
If the failure occurs on the first boot after the image is applied, you can find the logs in the \Windows\Panther folder of the local disk volume. The local disk volume is usually the drive C.
Useful log files for troubleshooting RDS issues
This article describes the logs that you must collect when you troubleshoot RDS issues.
Original product version: В Windows Server 2012 R2
Original KB number: В 2747656
Introduction
Remote Desktop Management Service (RDMS) is a new feature that is introduced in Windows Server 2012. RDMS simplifies administrative tasks in Remote Desktop and provides a centralized management solution for all Remote Desktop Services (RDS) role services and scenarios.
This article introduces the logs that you have to collect when you troubleshoot issues during one of the following operations:
- RDS installation
- Collection creation
- Virtual machine provisioning
How to enable logs
Before you collect the logs, you must enable the RDMSDeploymentUI and RDMSUI-trace logs. To do this, follow these steps:
On the Remote Desktop (RD) Connection Broker server, create the following registry key:
Create the following two registry entries under the registry key:
- Entry: EnableDeploymentUILog
- Data type: REG_DWORD
- Value: 1
How to collect logs
To troubleshoot issues during RDS installation and deployment, collect the following RDMS UI log files on the RD Connection Broker server:
This file is located in the %windir%\Logs folder.
This file is located in the %temp% folder. Usually, the path of the %temp% folder is as follows:
To troubleshoot issues during collection creation and virtual machine provisioning, follow these steps:
On the RD Connection Broker server, follow these steps:
- Collect the RDMSDeploymentUI.txt and RDMSUI-trace.log files.
- Collect the contents of the %windir%\system32\tssesdir\*.xml folder. The files in this folder are the VM provisioning job reports.
- In Event Viewer, enable the Analytic and Debug logs, expand Custom Views, click Administrative Events, and then export the event logs.
- Expand Applications and Services Logs, expand Microsoft, expand Windows, expand TerminalServices-SessionBroker, and then export the event logs.
- Expand Applications and Services Logs, expand Microsoft, expand Windows, expand Rdms-UI, and then export the event logs.
On the Remote Desktop Virtualization Host server, follow these steps:
- In Event Viewer, enable the Analytic and Debug logs, expand Custom Views, click Administrative Events, and then export the event logs.
- Expand Applications and Services Logs, expand Microsoft, expand Windows, expand TerminalServices-TSV-VmHostAgent, and then export the event logs.
- Expand Applications and Services Logs, expand Microsoft, expand Windows, expand the Hyper-V-related nodes, and then export the event logs.
—>
How to Log off all Terminal Server Session Users from a Command Prompt
This article provides some information about how to log off all Terminal Server Session Users from a Command Prompt.
Original product version: В Windows Server 2012 R2
Original KB number: В 259436
Summary
Under some conditions, an administrator may want to force a logoff of all users currently logged on to a Windows NT 4.0 Server, Terminal Server Edition-based computer. You can do so by creating a batch file that calls two Terminal Server specific commands, QUERY, and LOGOFF.
Performing the following procedure logs off all users currently logged onto the Terminal Server. This may result in a loss of unsaved data. Because of this, extreme caution is advised.
More information
To create a batch file that calls these two Terminal Server specific commands, place the following information into a batch (.bat) file:
This batch file may be run at any time the Administrator desires to force the logoff of all users that are not logged on to the Terminal Server console.
Query is a multi-purpose command found within the Terminal Server environment. In this case, Query Session creates a list of all sessions running on the Terminal Server, complete with Session ID numbers. Within the batch file, this output is redirected to a text file. The FOR statement then parses each line of the text file, skipping the first line, and looking for the Session ID number found in the third column. It then places this variable into Logoff, resulting in that session being logged off.
It is not uncommon to receive an error message when you run this batch file. If a user is logged on to the Terminal Server console, the following error message is generated:
Could not logoff session ID 0 from session Console, Error code 5
Error [5]: Access is denied.
It is due to a limitation of the Logoff command. It cannot force the logoff of the console session. A work-around to this issue would be to modify the batch file to read:
Настройка удаленного управления в диспетчер сервера Configure remote Management in Server Manager
Область применения. Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
В Windows Server можно использовать диспетчер сервера для выполнения задач управления на удаленных серверах. In Windows Server, you can use Server Manager to perform management tasks on remote servers. удаленное управление включено по умолчанию на серверах под управлением Windows Server 2016. remote management is enabled by default on servers that are running Windows Server 2016. Чтобы удаленно управлять сервером с помощью диспетчер сервера, необходимо добавить сервер в пул серверов диспетчер сервера. To manage a server remotely by using Server Manager, you add the server to the Server Manager server pool.
Диспетчер сервера можно использовать для управления удаленными серверами, на которых работают старые версии Windows Server, но для полного управления этими старыми операционными системами необходимо выполнить следующие обновления. You can use Server Manager to manage remote servers that are running older releases of Windows Server, but the following updates are required to fully manage these older operating systems.
Чтобы управлять серверами под управлением Windows Server версии более ранних, чем Windows Server 2016, установите следующее программное обеспечение и обновления, чтобы сделать более старые выпуски Windows Server управляемыми с помощью диспетчер сервера в Windows Server 2016. To manage servers that are running Windows Server releases older than Windows Server 2016, install the following software and updates to make the older releases of Windows Server manageable by using Server Manager in Windows Server 2016.
Операционная система Operating System | Необходимое программное обеспечение Required Software | Управляемость Manageability |
---|---|---|
Windows Server 2012 R2 или Windows Server 2012 Windows Server 2012 R2 or Windows Server 2012 | — Платформа .NET Framework 4,6 — .NET Framework 4.6 — Windows Management Framework 5,0. — Windows Management Framework 5.0. В Windows Server 2012 R2, Windows Server 2012 и Windows Server 2008 R2 поставщики инструментарий управления Windows (WMI) загрузить обновления для пакета управления Microsoft Management Framework 5,0 (WMI). The Windows Management Framework 5.0 download package updates Windows Management Instrumentation (WMI) providers on Windows Server 2012 R2 , Windows Server 2012 , and Windows Server 2008 R2 . Обновленные поставщики WMI позволяют диспетчер сервера собираются сведения о ролях и компонентах, установленных на управляемых серверах. The updated WMI providers let Server Manager collect information about roles and features that are installed on the managed servers. До применения обновления серверы, работающие под управлением Windows Server 2012 R2, Windows Server 2012 или Windows Server 2008 R2, имеют состояние управляемости недоступно. Until the update is applied, servers that are running Windows Server 2012 R2 , Windows Server 2012 , or Windows Server 2008 R2 have a manageability status of Not accessible. — Обновление для повышения производительности, связанное с статьей базы знаний 2682011 , больше не требуется на серверах под управлением windows Server 2012 R2 или windows Server 2012. — The performance update associated with Knowledge Base article 2682011 is no longer necessary on servers that are running Windows Server 2012 R2 or Windows Server 2012 . | |
Windows Server 2008 R2 Windows Server 2008 R2 | — Платформа .NET Framework 4,5 — .NET Framework 4.5 — Windows Management Framework 4,0. — Windows Management Framework 4.0. Windows Management Framework 4,0 downloads Package Updates инструментарий управления Windows (WMI) (WMI) providers in Windows Server 2008 R2. The Windows Management Framework 4.0 download package updates Windows Management Instrumentation (WMI) providers on Windows Server 2008 R2 . Обновленные поставщики WMI позволяют диспетчер сервера собираются сведения о ролях и компонентах, установленных на управляемых серверах. The updated WMI providers let Server Manager collect information about roles and features that are installed on the managed servers. До применения обновления серверы, работающие под управлением Windows Server 2008 R2, имеют состояние управляемости недоступно. Until the update is applied, servers that are running Windows Server 2008 R2 have a manageability status of Not accessible. — Обновление производительности, связанное с статьей базы знаний 2682011 , позволяет диспетчер сервера собираются данные производительности с Windows Server 2008 R2. — The performance update associated with Knowledge Base article 2682011 lets Server Manager collect performance data from Windows Server 2008 R2 . | |
Windows Server 2008 Windows Server 2008 | — Платформа .NET Framework 4 — .NET Framework 4 — Windows Management Framework 3,0 Windows Management Framework 3,0 downloads Package Updates инструментарий управления Windows (WMI) (WMI) providers in Windows Server 2008. — Windows Management Framework 3.0 The Windows Management Framework 3.0 download package updates Windows Management Instrumentation (WMI) providers on Windows Server 2008 . Обновленные поставщики WMI позволяют диспетчер сервера собираются сведения о ролях и компонентах, установленных на управляемых серверах. The updated WMI providers let Server Manager collect information about roles and features that are installed on the managed servers. Пока обновление не будет применено, серверы, работающие под управлением Windows Server 2008, имеют состояние управляемости недоступно. Проверьте более ранние версии запуска Windows Management Framework 3,0. Until the update is applied, servers that are running Windows Server 2008 have a manageability status of Not accessible — verify earlier versions run Windows Management Framework 3.0. — Обновление производительности, связанное с статьей базы знаний 2682011 , позволяет диспетчер сервера собираются данные производительности с Windows Server 2008. — The performance update associated with Knowledge Base article 2682011 lets Server Manager collect performance data from Windows Server 2008 . |
подробные сведения о добавлении серверов в рабочих группах для управления и управления удаленными серверами с компьютера рабочей группы, на котором работает диспетчер сервера, см. в разделе Добавление серверов в Диспетчер сервера. for detailed information about how to add servers that are in workgroups to manage, or manage remote servers from a workgroup computer that is running Server Manager, see add Servers to Server Manager.
Включение и отключение удаленного управления Enabling or disabling remote management
В Windows Server 2016 удаленное управление включено по умолчанию. In Windows Server 2016, remote management is enabled by default. Перед тем как подключиться к компьютеру под управлением Windows Server 2016 удаленно с помощью диспетчер сервера, на конечном компьютере должен быть включен диспетчер сервера удаленное управление, если оно было отключено. Before you can connect to a computer that is running Windows Server 2016 remotely by using Server Manager, Server Manager remote management must be enabled on the destination computer if it has been disabled. В процедурах данного раздела описано, как отключить удаленное управление и как его вновь включить, если оно было отключено. The procedures in this section describe how to disable remote management, and how to re-enable remote management if it has been disabled. В консоли диспетчер сервера состояние удаленного управления для локального сервера отображается в области Свойства на странице локальный сервер . In the Server Manager console, the remote management status for the local server is displayed in the Properties area of the Local Server page.
Локальные учетные записи с правами администратора, за исключением встроенной учетной записи администратора, могут не иметь права на удаленное управление сервером, даже если удаленное управление включено. Local administrator accounts other than the built-in Administrator account may not have rights to manage a server remotely, even if remote management is enabled. Параметр реестра LocalAccountTokenFilterPolicy удаленного контроля учетных записей (UAC) должен быть настроен на разрешение локальных учетных записей группы администраторов, отличной от встроенной учетной записи администратора, для удаленного управления сервером. The remote User Account Control (UAC) LocalAccountTokenFilterPolicy registry setting must be configured to allow local accounts of the Administrators group other than the built-in administrator account to remotely manage the server.
В Windows Server 2016 диспетчер сервера полагается на службу удаленного управления Windows (WinRM) и распределенную модель объектов (DCOM) для удаленного взаимодействия. In Windows Server 2016, Server Manager relies on Windows remote Management (WinRM) and the Distributed component Object model (DCOM) for remote communications. Параметры, которые управляются диалоговым окном Настройка удаленного управления , влияют только на части Диспетчер сервера и Windows PowerShell, которые используют WinRM для удаленного взаимодействия. The settings that are controlled by the Configure remote Management dialog box only affect parts of Server Manager and Windows PowerShell that use WinRM for remote communications. Они не влияют на части диспетчер сервера, использующие DCOM для удаленного взаимодействия. They do not affect parts of Server Manager that use DCOM for remote communications. Например, диспетчер сервера использует WinRM для взаимодействия с удаленными серверами под управлением Windows Server 2016, Windows Server 2012 R2 или Windows Server 2012, но использует DCOM для связи с серверами, работающими под управлением Windows Server 2008 и Windows Server 2008 R2, но не применяют обновления Windows Management framework 2008 или windows Management Framework 4,0 . For example, Server Manager uses WinRM to communicate with remote servers that are running Windows Server 2016, Windows Server 2012 R2, or Windows Server 2012, but uses DCOM to communicate with servers that are running Windows Server 2008 and Windows Server 2008 R2, but do not have the Windows Management Framework 4.0 or Windows Management Framework 3.0 updates applied. Консоль управления Microsoft (MMC) и другие средства управления прежними версиями используют DCOM. Microsoft Management Console (mmc) and other legacy management tools use DCOM. Дополнительные сведения об изменении этих параметров см. в разделе Настройка MMC или другого средства удаленное управление по протоколу DCOM этой статьи. For more information about how to change these settings, see To configure mmc or other tool remote management over DCOM in this topic.
Процедуры этого раздела можно выполнить только на компьютерах, работающих под управлением Windows Server. Procedures in this section can be completed only on computers that are running Windows Server. Вы не можете включить или отключить удаленное управление на компьютере под управлением Windows 10 с помощью этих процедур, так как клиентскую операционную систему нельзя управлять с помощью диспетчер сервера. You cannot enable or disable remote management on a computer that is running Windows 10 by using these procedures, because the client operating system cannot be managed by using Server Manager.
Чтобы включить удаленное управление WinRM, выберите одну из следующих процедур. To enable WinRM remote management, select one of the following procedures.