Error: "A Device Attached to the System is Not Functioning" While Reconnecting To Previous Session

Error: "A Device Attached to the System is Not Functioning" While Reconnecting To Previous Session

book

Article ID: CTX222916

calendar_today

Updated On:

Description

Randomly user cannot reconnect to his previous session.username "-" in studio.Sometimes, there is an error "A device attached to the system is not functioning" in CDF trace or welcome screen.

Resolution

Solution 1

KB2661332
Csrss.exe has a deadlock with Microsoft Excel or  Microsoft  Visio
https://support.microsoft.com/zh-cn/help/2661332/you-cannot-reestablish-a-remote-desktop-services-session-to-a-windows-server-2008-r2-based-server

Solution 2

KB2383928
The issue occurs because of a problem in the Win32k.sys driver.

If a remote desktop session exits before the session is completely initialized, the state change notification of the session is not sent to the third-party driver. In this situation, the driver can leak resources, such as a system thread, in the context of Csrss.exe because the third-party driver cannot unload. The leaked thread causes the remote desktop session not to exit completely. After the computer is running in this status for some time, the Local Session Manager (Lsm.exe) blocks new incoming connections. Additionally, these orphaned sessions also cause the shutdown process to stop responding. Therefore, you experience the issue that is described in the "Symptoms" section.

https://support.microsoft.com/zh-cn/help/2383928/remote-desktop-sessions-do-not-completely-exit,-and-you-cannot-establish-new-remote-desktop-sessions-to-a-computer-that-is-running-windows-server-2008-r2

Solution 3

https://support.microsoft.com/en-us/help/933664/error-message-when-you-try-to-connect-to-a-shared-resource-from-a-windows-vista-based-client-computer-a-device-attached-to-the-system-is-not-functioning

Solution 4

Configure session idle and disconnect policy in studio or MS policy for the VDI. That is logoff the session after disconnect for sometime


Problem Cause

Csrss.exe remained hang after the session is disconnected.

Issue/Introduction

Randomly user cannot reconnect to his previous session.username "-" in studio.Sometimes, there is an error "A device attached to the system is not functioning" in CDF trace or welcome screen.