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

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

Related:

  • No Related Posts

Alt+Tab Does Not Pass Through the VDI in ICA Session

Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.

To resolve this issue change the following registry key on the client machine:

32-bit OS:

Key: HKEY_LOCAL_MACHINESOFTWARECitrixICA ClientEngineLockdown ProfilesAll RegionsLockdownVirtual ChannelsKeyboard

Type: REG_SZ

Name: TransparentKeyPassthrough

Value: Remote

64-bit OS:

HKEY_LOCAL_MACHINESOFTWAREWOW6432NodeCitrixICA ClientEngineLockdown ProfilesAll RegionsLockdownVirtual ChannelsKeyboard

Type: REG_SZ

Name: TransparentKeyPassthrough

Value: Remote

Related:

Host to client redirection is not working after following Citrix Documentation for Version 2003.

The path for iexplore.exe in the registry changes needed for this to work was changed in Version 2003.

to “C:Program Files (x86)CitrixHDXbiniexplore.exe” So the correct registry changes are as follows:

— Reg file start —

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTServerFTAHTMLshellopencommand]

@=””C:Program Files (x86)CitrixHDXbiniexplore.exe” %1″

[HKEY_LOCAL_MACHINESOFTWARECitrixServerFTA]

@=”ServerFTA”

[HKEY_LOCAL_MACHINESOFTWARECitrixServerFTACapabilities]

“ApplicationDescription”=”Server FTA URL.”

“ApplicationIcon”=”C:Program Files (x86)CitrixHDXbiniexplore.exe,0”

“ApplicationName”=”ServerFTA”

[HKEY_LOCAL_MACHINESOFTWARECitrixServerFTACapabilitiesURLAssociations]

“http”=”ServerFTAHTML”

“https”=”ServerFTAHTML”

[HKEY_LOCAL_MACHINESOFTWARERegisteredApplications]

“Citrix.ServerFTA”=”SOFTWARECitrixServerFTACapabilities”

— Reg file end —

Related:

ShareFile Data Migration Tool – Data and Permissions Mapped to Shared Folders

Transfer Type – Data + Permissions – Mapped to Shared Folders:

  1. Select a directory to transfer: Use the browse button to select the source folder that you wish to migrate to ShareFile
  2. Configure folder permission options:
    • Folder ownership only – Migrates only the folder ownership. Files and Folder would be migrated to the admin’s Shared Folder and would be shared with the users who own a specific file/folder.
    • Folder ownership and access permissions – Migrates folder ownership along with the permissions. Files and Folder would be migrated to the admin’s Shared Folder and will be shared with the users who own specific files/folders and with users who have certain permissions on the folder.
  3. Configure transfer options:
    • Schedule transfer – Allows you to schedule the migration in a specific time frame.
    • Don’t upload files with more recent modified time on ShareFile – Enabling this option would not upload files when most recent file is present in destination folder selected in ShareFile.

After all the configurations are done, click on Continue button.

User would be prompted with Connect to Active Directory

User-added image

User who has launched this application – If the current user logged in on the machine running the tool is domain user, then tool would automatically take those credentials to connect to that domain AD

Any other user – If user wants to connect to some other domain.

Note: It is recommended to run the tool on a machine which is connected to the domain from which the user’s details are being fetched for ownership and permissions migration.

Once all option are selected and clicked on Continue button, you will be provided with Pre Migration view

  1. Migration type – Specifies the type of transfer selected by the Admin
  2. Source – Specifies the location from where the data is being migrated
  3. Total number of files – Count of files being migrated
  4. Total Size – Total size being migrated
  5. Expected Time – Approx. time that would be taken for the migration
  6. File Types Excluded – Displays list of file types excluded. “Exclude” link provided to exclude any files from migration.
  7. Items Unable to Transfer – Displayed files/folders which are inaccessible and would not be migrated. If there are any files /folders which are inaccessible then link to Review the same would be provided.

Permissions Mapping:

NTFS Permissions ShareFile Permissions
Download Upload Delete Admin
Full Control Yes Yes Yes Yes
Modify Yes Yes Yes No
Read and Execute Yes No No No
List folder contents Yes No No No
Read Yes No No No
Write Yes Yes No No
Special Permission
Traverse folder/ Execute Files Yes No No No
List folder / Read data Yes No No No
Read Attributes Yes No No No
Read extended attributes Yes No No No
Create files / Write data Yes Yes No No
Create folders / Append data Yes Yes No No
Write Attributes Yes No No No
Write extended attributes Yes No No No
Delete Subfolders and files Yes No Yes No
Delete Yes No Yes No
Read permissions Yes No No No
Change permissions Yes Yes Yes Yes
Take Ownership Yes Yes Yes Yes

Related:

ShareFile folder permission descriptions

The folder permissions detailed below allow for user-specific folder functionality. Each user on the folder can have their own permission set. To change folder permissions for an individual folder, navigate to that folder and access the People on this Folder menu. Use the check boxes to change permissions as needed. To manage folder permissions without navigating to them individually, click here.

Download permission

With download permission, a user has the ability to download any document in the folder to their computer or mobile device.

Download alerts

With download alerts, users will be notified via email that files have been downloaded from the folder. A user must be granted admin permission on the folder to be granted download alerts, as it will allow them to identify other users on the folder when they download documents.

Upload permission

Granting a user upload permission gives the user the ability to upload files or folders to the folder. With this permission, the user is also able to create subfolders within this folder. Any subfolders created will automatically inherit the parent folder’s permissions. The user creating the subfolder will not be able to manage users on the newly created subfolder unless they were also granted admin permission on the parent folder.

Upload alerts

With upload alerts, users will be notified via email that files have been uploaded to the folder. In order to be granted this permission, the user does have to also be granted the download permission. Users with download permission will also be able to grant themselves this permission through a checkbox on the folder.

Delete permission

The delete permission grants a user the ability to delete files within the folder that they did not upload. Note that by default, all users are able to delete files that they uploaded to the folder. This can be turned off for an account by an administrator’s request to ShareFile customer support .

Admin permission

A user granted admin permission has the ability to manage folder access on this folder and can add or remove users. They will also be able to edit some folder options. Note that the user listed as Owner (usually the creator of the folder) may not be removed by any user.

View permission

Granting a user view permission allows them to view a document without downloading it. A user must be granted just view permission if you desire them to view the document with a watermark. If you grant a user download permissions on the folder, they will automatically be granted view permissions as well. Only VDR accounts and storage zones accounts with View-Only Sharing have the ability to grant View permissions.

Related:

  • No Related Posts

Citrix Cloud Connector servers are in reboot loop after new update was pushed


There are some locations on operating system where it stores flag for pending reboot:

Look for presence of ‘PendingFileRenameOperations‘ inside following key:

HKLM:SYSTEMCurrentControlSetControlSession Manager

Look for presence of key ‘RebootPending‘ as below:

HKLM:SoftwareMicrosoftWindowsCurrentVersionComponent Based ServicingRebootPending

Look for presence of key ‘RebootRequired‘ as below:

HKLM:SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateRebootRequired

Most of these flags will be cleared with first reboot of operating system.

But in some special cases, ‘PendingFileRenameOperations‘ would continue to remain inside HKLM:SYSTEMCurrentControlSetControlSession Manager even after reboot.

The value ‘PendingFileRenameOperations‘ stores the names of files that the operating system will rename when it restarts. The key consists of pairs of file names. The operating system renames the file in the first item of the pair to match the second item of the pair.

In such cases, we should check for the value data of ‘PendingFileRenameOperations‘ from registry to identify the files that are pending for rename. Once we know the application responsible for those files (mostly a 3rd party application), follow below steps:

  1. Disable ‘Citrix Cloud Services Agent WatchDog’ to stop the reboot loop temporarily.
  2. Disable the identified applications service(s) OR uninstall the application completely.
  3. Delete ‘PendingFileRenameOperations’ from HKLM:SYSTEMCurrentControlSetControlSession Manager
  4. Reboot the service manually and confirm ‘PendingFileRenameOperations’ doesn’t appear any more inside HKLM:SYSTEMCurrentControlSetControlSession Manager
  5. Enable ‘Citrix Cloud Services Agent WatchDog’ to automatic and start the service.

The pending connector update will begin in few minutes and run a health check from console after the upgrade to ensure it is healthy.

Related:

Error: “Error getting status – Cannot find license file”

To resolve this issue, run the following command from the command prompt. Ensure that the complete path of the MyFiles folder is specified:

lmstat -a -c “C:Program Files (x86)CitrixLicensingMyFiles”

Or

lmstat -a -c “C:Program FilesCitrixLicensingMyFiles”

Note: On 64-bit versions of Windows, there are two folders for application files. All 32-bit applications are installed in Program Files (x86) folder. All 64-bit applications are installed in the Program Files folder.

Related:

Folder Permissions

The folder permissions detailed below allow for user-specific folder functionality. Each user on the folder can have their own permission set. To change folder permissions for an individual folder, navigate to that folder and access the People on this Folder menu. Use the checkboxes to change permissions as needed. To manage folder permissions without navigating to them individually, click here.

Advisory – When using the “Apply changes to subfolders” checkbox on a folder containing more than 30 subfolders, the attempt to save and apply permissions may time out. If this is the case, consider using Distribution Groups to easily manage permissions for large groups of users.

Download permission

With download permission, a user has the ability to download any document in the folder to their computer or mobile device.

Download alerts

With download alerts, users will be notified via email that files have been downloaded from the folder. A user must be granted admin permission on the folder to be granted download alerts, as it will allow them to identify other users on the folder when they download documents.

Upload permission

Granting a user upload permission gives the user the ability to upload files or folders to the folder. With this permission, the user is also able to create subfolders within this folder. Any subfolders created will automatically inherit the parent folder’s permissions. The user creating the subfolder will not be able to manage users on the newly created subfolder unless they were also granted admin permission on the parent folder.

Upload alerts

With upload alerts, users will be notified via email that files have been uploaded to the folder. In order to be granted this permission, the user does have to also be granted the download permission. Users with download permission will also be able to grant themselves this permission through a checkbox on the folder.

Delete permission

The delete permission grants a user the ability to delete files within the folder that they did not upload. Note that by default, all users are able to delete files that they uploaded to the folder. This can be turned off for an account by an administrator’s request to ShareFile customer support .

Admin permission

A user granted admin permission has the ability to manage folder access on this folder and can add or remove users. They will also be able to edit some folder options. Note that the user listed as Owner (usually the creator of the folder) may not be removed by any user.

View permission

Granting a user view permission allows them to view a document without downloading it. A user must be granted just view permission if you desire them to view the document with a watermark. If you grant a user download permissions on the folder, they will automatically be granted view permissions as well. Only VDR accounts and StorageZones accounts with View-Only Sharing have the ability to grant View permissions.


Manage Folder Access Permissions via Manage Users

This feature can only be utilized by a Super User. Master Admin users must also be a Super User to utilize this feature. To change folder permissions from the Manage Users menu, or quickly view a user’s folder permissions without having to navigate to each individual folder one at a time:

  1. Navigate to the People > Manage Users menu.
  2. Use the Search or Browse function to locate the user you wish to view.
  3. Under Basic User Permissions, click Configure folder access permissions for this user.
  4. Use the Folder Tree menu to quickly edit your user’s existing folder permissions, or add a user to a folder if they do not already have access.

Related: