Server 2012 R2 RDS – cannot log off user session

We have a 2 server RDS RemoteApp Farm.
One server is constantly leaving user sessions in a disconnected state without the ability to kill the session (rebooting is the only way); this is happing 1-2 times per week.
Servers have been configured to kill a disconnected session after 10 minutes, but some disconnected sessions have been running for days.
Below is a screenshot of the process running for two disconnected users sessions that I could not disconnect, rebooting the server was the only way of fixing this. No error's were generated when users disconnected the session.
Is there a known fix for this?

Hi,
Did you apply session disconnected policy setting in your environment?
There are different ways for getting user log off. As you have commented that it’s happening with specific user, once check whether the user profile is not corrupted or any other related case. Also it might relates that some application or related services
is still running under user profile so that session cannot be logged off. You can also try PowerShell command to log off the user. Also with
Query user command you can find the related session name and ID and then with “Logoff user command” you can logoff the specific user. 
For policy related to session setting you can check beneath article. (point 1)
[Forum FAQ] Restrict number of Active Sessions
in RDS 2012 and 2012 R2
Hope it helps!
Thanks.
Dharmesh Solanki
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • Users Cannot Change Passwords on a Server 2012 R2 RDS Farm

    Hello I have a Server 2012 R2 RDS Farm consisting of 1 server that has connection broker and gateway configured and 4 RDS Session Hosts. The works great I even have a separate remote app farm to distribute the apps to the servers, my main issue is passwords
    and the lack of the EU ability to change these, listed below are my symptoms.
    Users password has expired denied logon instantly with no ability to change password.
    User tries to change password whilst in 30 day warning period using ctrl alt end the user is advised the password does not meet complexity requirements I have checked this and they do meet them.
    Expired passwords can be changed via the RDWeb site however this is not an option for us.
    Chris

    Hi,
    Firstly, based on my knowledge, remote users may have to change their passwords before expired. If not, they have to use OWA or logon on locally to change their passwords.
    Regarding the issue, please let us know if the following policies are enabled in your domain.
    Enforce password history
    Minimum password age
    Also, does a local domain user have the same issue?
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Windows Server 2012 R2 RDS: RDS Users are unable to delete files from their desktop

    Hello,
    We are working with Windows Server 2012 R2 RDS. We also implemented User Profile Disks. This is all working fine without problems. The only issue I have is that normal users are unable to delete files from their desktop. They are getting a message:
    you'll need administrator permission to delete this file, with the prompt for administrator access.
    They can edit, copy, rename, cut and paste files. But they cannot delete a file from their desktop.
    I checked the security permissions of the files on the desktop (for example a normal self-created PDF file) and the users are owner and have "Full Control" over the files.
    I checked the file permissions and took a look under "Advanced", selecting the specific domain user and checked the "Advanced Permissions" and the user has the "Delete" option checked. So he should be able to delete the
    file.
    I am guessing this is UPD related issue, or something in GPO. But I already unlinked the GPO objects, that I felt could be the source of this problem, but without results.
    Could someone give me a hint on where to look? It's kinda annoying to users, that they can't delete their own files.

    Hello Bria,
    What you should check first, is the NTFS permissions on the User Profile Disk to begin with. See if the user has full control over the items that are in the UPD.
    Also check the GPO's that are enabled for the user and computer account. You can check that by running: gpresult /h <path>\gpresult.html
    There are two GPO settings that could prevent the user from deleting his/her own items: 
    User
    Configuration\\Policies\\Administrative Templates\\Windows Components\\Windows Explorer\
    Hide these specified drives in My Computer
    Prevent access to specified drives in My
    Computer
    There might be other GPO settings, that block deleting items on the UPD, but can't think of any out of my head.
    I can only think NTFS and GPO settings that might prevent the user from deleting items. In my case it was a GPO setting, that I didn't suspect.

  • Resizing User Profile Disks in Existing Server 2012 R2 RDS Deployment Question

    Once the initial maximum size is set and the VHDXs have been created in a Server 2012 R2 RDS deployment, will attempting to increase Collection's maximum UPD size by say.. issuing a Powershell command of:
    Set-RDSessionCollectionConfiguration -CollectionName MySpiffyNewCollection -MaxUserProfileDiskSizeGB 10
    over-write the existing VHDXs instead of simply increasing their size? (max size is currently 5GB)
    I'm not at a point where I can test this in a lab condition to find out, and I have not found this question asked (or at least not definitively answered) in this forum yet.
    -G

    Hi,
    Thank you for posting in Windows Server Forum.
    We can resize the UPD file with below command:
    Resize-VHD –Path c:\BaseVHDX.vhdx –SizeBytes 1TB
    After running this mount the .vhdx file and open disk manager and there will be unallocated disk, and then you can click extend disk/volume and its done.
    You can refer following article for more information.
    Resize User Profile Disks
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • I cannot log off from any of my accounts when i;m on line

    i cannot sign off on my yahoo account after i've finish sending e/mails
    i cannot log off on my online chase banking account
    this happens when i use firefox..
    but this does not happen when i use internet explorer
    why is this

    Hi,
    You can consider the [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] feature via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information''' and check before changing the default options. If there are any default '''Extensions''' in '''Tools''' ('''Alt''' + '''T'''), please also try to '''Disable''' them.
    (To revert to the previous profile, close the new profile, start Firefox and choose the '''*.default''' profile. While the [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Profile Manager] is open, you can also delete the newly reset profile (the one containing random numbers)).
    [https://support.mozilla.org/en-US/kb/Managing-profiles Managing profiles]
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]

  • After I reinstalled Windows Server 2012 R2, I cannot attach my virtual disk

    Hello,
    After I reinstalled Windows Server 2012 R2, I cannot  attach manually my virtual disk "MOVIES" :
    http://windowsitpro.com/systems-management/q-after-i-reinstalled-windows-server-2012-my-storage-spaces-are-no-longer-writabl
    When i try this command : (http://technet.microsoft.com/fr-fr/Library/hh848641.aspx)
    PS C:\>Connect-VirtualDisk –FriendlyName "MOVIES"I'have this error :PS C:\Windows\system32> Connect-VirtualDisk -FriendlyName "MOVIES"
    Connect-VirtualDisk : Failed
    Au caractère Ligne:1 : 1
    + Connect-VirtualDisk -FriendlyName "MOVIES"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (StorageWMI:ROOT/Microsoft/...SFT_VirtualDisk) [Connect-VirtualDisk], CimE
       xception
        + FullyQualifiedErrorId : StorageWMI 4,Connect-VirtualDiskI have the same problem with right clic attach on the manage interfaceAll my disks are OKI d'ont understand why i have a problemCould' you help me Tanks in advance for your helpRegards,Nicolas

    Hello Elton,
    I tried
    numerous powershell
    command to do anything
    but I'm
    lack of ideas.
    All my disk are OK :
    but
    how can I do to make a
    CheckDisk on a virtual disk because
    there is no letter corresponding to the volume
    It's only when i try to connect VirtualDisk to my Server
    the problem happens ...
    I try to repair the virtualDisk with powershell command :
    PS C:\Windows\system32> Repair-VirtualDisk -FriendlyName MOVIESIt's works but it takes less than 2 seconds ...There is no solution?
    I lost all my data? Can i try to delete virtual disk and recovery data with a recovery program,
    is
    that it might work?
    Thanks you in advance for your help
    Regards,
    Nicolas

  • Why do I get the colored pinwheel while working on yahoo and I cannot log off normal?

    Why do I get the colored pinwheel while working on yahoo and I cannot log off normal?

    Don't know. 
    What type of "work" are you doing on Yahoo?  Please describe in detail all you have attempted to do in order to resolve the issue.
    Troubleshoot the spinning beach ball

  • User profile images not persisting after log off on Server 2012 R2 RDS Session Hosts

    Hi,
    We have a 2012 R2 remote desktop deployment, with two session collections, a gateway server, and connection broker.
    We have set these session collections to use centralised user profile disks.
    What I am having an issue with, is that when a user sets their profile image through the server they have logged on to (I have the desktop experience pack installed so they are able to do this), they can see the user tile has been set with that image in
    settings and also on the start menu, but as soon as they log off the server and back on, their profile image has been reset to the default blank image.
    I have checked all of my group policy options, and cannot find any settings that could be impacting this.
    Does anyone have any ideas why these images are not persisting for users or admins?
    Thanks, Eds

    Please check that the user is not getting a temporary profile each time he logs in. Also, make sure that the RDP client is properly configured to display the Wallpaper: http://www.webapper.com/blog/index.php/2007/10/18/enabling-desktop-wallpaper-on-remote-desktop-terminal-services/
    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
    Get Active Directory User Last Logon
    Create an Active Directory test domain similar to the production one
    Management of test accounts in an Active Directory production domain - Part I
    Management of test accounts in an Active Directory production domain - Part II
    Management of test accounts in an Active Directory production domain - Part III
    Reset Active Directory user password

  • Server 2012 R2 RDS, User Profile Disks are created but local profiles are created as well. The UPDs aren't mounting correctly.

    2012 R2 RDS Deployment with RDCB HA and UPDs enabled. Everything was working fine with no issues until users started getting temporary profiles. Around the same time UPDs were being created but at the same time a user profile was created in C:\Users. 
    I actually rebuilt the entire RDS configuration except the SQL Server. It took about 5 hours and was not that big a deal but.... we still have the same issue! 
    Does anybody have the solution for this?

    Hi,
    In most cases, the issue is caused by locked UPD. And the workaround is to log off the user. Please check if it is the case.
    For example:
    RDS user profile disks - getting error temporary profile are being used as UPD are not accessible
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/0d4b66fc-b53f-435e-b036-142b6ed15d0b/rds-user-profile-disks-getting-error-temporary-profile-are-being-used-as-upd-are-not-accesible?forum=winserverTS
    Also, please check if you will get the temporary profile when logging on with a local account of the session host server.
    If issue persists, please check if there is any related error in Event Viewer and provide us for further research.
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • Windows Server 2012 R2 RDS + User profile Disks + App-V = Explorer.exe crashing all of the time

    I have built a new RDS farm on Windows Server 2012 R2 with two Session Hosts and a combined Connect Broker/Web Access server. I had the farm up and running with User Profile Disks and all seemed OK. However, as soon as I installed the App-V 5.0 SP2 RDS
    client on the session hosts, the explorer.exe process started crashing for any user logging in via the Web Access site. The process crashes and restarts every five to ten seconds. It's the same for administrators. If they log in via Web Access explorer.exe
    crashes, but if they RDP directly to one of the session hosts explorer.exe is fine. If I reboot the session hosts, then the first user to log in via Web Access has a stable desktop session (and appears to have a new profile as well). However, if that user
    logs out and back in again, explorer.exe starts crashing again. The only applications I have packaged at the moment are Office 2013 and Firefox.
    I tried disabling User Profile Disks, but this caused a whole bunch of other problems and I eventually lost the ability to log in at all via Web Access (errors about the user profile service). As this is a small pre-production environment I completed scrapped
    all of the servers and rebuilt from scratch. Again, everything appeared fine until I installed the App-V client, then explorer.exe started crashing repeatedly for all users.
    Has anyone come across this issue before? I have tried installing the App-V 5.0 SP2 Hotfix Package 2, but this didn't help. I have read in a few forums that App-V doesn't work very well with User Profile Desks, but I have not heard of this particular issue.
    Similarly, SP2 seems to have a lot of problems, so I am going to try removing App-V RDp Client SP2 and installing SP1. I ahev also deleted User Profile Disks for the test users to recreate their profiles, but this didn't help either.
    Any other suggestions welcome!

    I forgot to include the application event log entry for explorer.exe crashing:
    Faulting application name: explorer.exe, version: 6.3.9600.17039, time stamp: 0x53156588
    Faulting module name: KERNELBASE.dll, version: 6.3.9600.17055, time stamp: 0x532954fb
    Exception code: 0xc06d007e
    Fault offset: 0x0000000000005bf8
    Faulting process id: 0xae8
    Faulting application start time: 0x01cfab3a273787fd
    Faulting application path: C:\Windows\explorer.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll
    Report Id: 69210d77-172d-11e4-80c6-0050560102d1
    Faulting package full name: 

  • Error installing Office 2013 on Server 2012 R2 RDS - Error 25004: the product key you entered cannot be used on this machine

    Hi there,
    I really hope someone can help me as I am tearing my hair out trying to get this resolved!
    I am working on a Server 2012 R2 server with RDS running. Before it was turned into a RDS server it had a copy of Office 2010 running as a trial to see would it work for the accounting package that is running for users via Remote Desktop. Trial worked ok
    so it was converted into a RDS server. Now, as its a RDS it needs to run Office under a volume licence, which I have. However when trying to install I get the message: "Error 25004: the product key you entered cannot be used on this machine. this is most
    likely due to previous Office 2013 trials being installed on the system."
    In summary I have tried everything I can think of and find to remove all traces of the old Office from the machine but still this message persists. I have run the Fix It For Me uninstall from MS and it cannot find any Office installed. i have manually searched
    through all of the Windows directories including Program Files and AppData and removed all traces of Office from there, I have searched the registry and removed all I can find from there.
    Where or what file does the installer look at to see that a previous version was installed? 
    I cannot scrub this machine which I would have done long ago because there is another SQL Server based application running on it.
    Really really appreciate anyone that can help me on this,
    Thanks

    Hi,
    I have definitely heard your frustration, and I’ll try my best to help you.
    Since Office 2010 installed on it before, you need to remove Office 2010 completely.
    KB about this error:
    http://support2.microsoft.com/kb/2792178
    A similar issue is addressed here. Although this method is based on Office 2010, but we can have a try:
    http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Q_28475448.html
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Cannot install or manage Server 2012 R2 RDS server locally but works remotely

    I am working with a Server 2012 R2 standard machine and attempting to get Remote Desktop Services installed and configured on it. Using the Add Roles and Features wizard while logged on locally to the server in question resulted in the error
    “Unable to connect to the server by using Windows PowerShell remoting.” However, if I use a different Server 2012 R2 machine to run the Add Roles and Features wizard remotely targeted
    at the original server then I can successfully get RDS installed.
    Also, after the installation has completed I cannot manage RDS locally on the server but can successfully manage it remotely from another Server 2012 R2 box. When attempting to use Server Manager locally and choose the Remote Desktop Services menu the error
    message "A Remote Desktop Services deployment does not exist in the server pool."
    The server appears to be functioning correctly and can be managed remotely just not locally. I can reproduce the behavior on other Server 2012 boxes in the environment.
    What would cause local install and management to fail but remote management work?

    Hi,
    Have you added the RDS server under server manager ADD server? Does it show the server in server list?
    Check whether there is any wrong IP address\hostname entry occurs under DNS record which looks\points the DNS entry successfully. 
    Add Servers to Server Manager
    https://technet.microsoft.com/en-in/library/hh831453.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Moving user profiles from Server 2012 with RDS services to User profile disks Server 2012R2

    Hello i have a question about moving my C:\users profiles.
    My current settings on the servers are:
    AD-Server 2012
    SQL-Server 2012
    TS- server with RDS roles (RDwebacces, RDs broker, RD session host) 2012
    everything about user profiles is now in C:\Users
    My new settings for the server will be:
    AD-ActiveDirectory - server
    SQL-Server
    TS1- RDS (RDwebacces, broker, RDS server group management) 2012R2 (I have enabeld userProfileDisks to Filesistem server)
    TS2- RDS(Session host) load balance 2012R2
    TS3- RDS (Session host) load balance 2012
    FileSistem - server ( here i will have on E: partition the new functionality UserProfileDisks) 2012R2
    So is there a way to move profiles from TS - C:\Users to FileSistem - E:\UserProfileDisks
    I am new to this so any idea wil be helpful.

    Hi,
    If the UPD is configured on the server which holds existing user profiles, just select the option:
    store all user settings and data inside the profile disk.
    Since you are moving user profiles between different servers, then user profile contents need to be migrated manually.
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to disable the Super User menu - (Right click windows icon menu) - Server 2012 R2 - RDS

    Greetings all,
    Can anyone please advise how to remove the Administrator / Super User menu that appears when you right click the Windows Icon (old start button) in Server 2012 R2 - for RDS users. I have searched and been able to disable access to each of these menu items (Control
    Panel, Event Viewer, Run, etc). But I am searching for a way to completely remove the menu. This menu also appears when you use Win-X shortcut.
    Hope someone can help.
    Terry

    Hi Terry,
    You can try following points, might helpful in your case. Go to 
    C:\Users\Default\AppData\Local\Microsoft\Windows 
    there you will see file called WinX 
    Right click this file and copy then go to
    C:\Users\YOUR_USERNAME\AppData\Local\Microsoft\Windows 
    then paste the file into the folder.
    NOTE: replace YOUR_USERNAME with your actual username. 
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Server 2012 Local Shares - Cannot access using \\IP but works via \\localhost

    I've been stuck on this problem for the last couple of days and I can't find a solution on the internet that works.
    I have a Windows Server 2012 instance running on Amazon AWS with a public IP address. I am using it as an SCCM (System Center 2012 Configuration Manager) Server (so it is a Domain Controller also). I realize that it's probably not best practice to use a public
    IP here, but I'm in a weird position where we are not connecting any of the Clients to the actual Domain (they are Workgroup computers all around the world). The goal here is to use SCCM to deploy software packages to all of the Clients, which are not on the
    same LAN/VPN/Domain.
    This is my first time setting something up like this, so I followed this guide. I am able to get the Workgroup computers to show up in the SCCM Server Device list (via manual client install), but these Workgroup computers need access to the Server's shares
    to download the software packages. On Amazon, I opened all ports and allowed all IPs to communicate with the Server. I am able to RDP into the Server from any Workgroup computer using the IP address, but cannot access the Server's SMB shares even though I
    am attempting the connection with a Domain account with access to those shares.
    I decided to see if I can even connect to the shares locally on the Server. Logging in with an account with administrator privileges, I can access \\localhost\shares without
    a problem. But when I try to do \\X.X.X.X\shares,
    it asks for user/pass (confirming that it is able to connect) and I put in the correct credentials for the account with administrator privileges (using DOMAIN\ACCOUNT), but it continually says that the user/pass is incorrect. After I click cancel, an error
    comes up saying "Error Code 0x80004005 Unspecified Error".
    It is crazy to me that the administrator account that is logged in cannot access the local shares via the public IP address... obviously no remote computer would be able to access the shares if the Server itself cannot. I have tried disabling the firewall,
    but this makes no difference. I am able to ping the IP from the Server and I get a response.
    I have searched around the internet for a solution but nothing has worked. Here are some of the suggestions I've found (that have failed): 
    - Making sure "Client for Microsoft Networks" and "File and Printer Sharing for Microsoft Networks is installed and enabled for the Ethernet Adapter 
    - Enabling NetBIOS over TCP/IP in IPv4 properties 
    - Ensuring IPv6 is disabled 
    - Server, TCP/IP NetBIOS Helper, and Workstation (services) are all running
    Any ideas? Sorry for such a long post, just wanted to get as many details as I could. All help is appreciated. Thanks! 
    Shawn

    Hi,
    Are there any anti-virus software or other third party products running on the server? If yes, please disable them to see if it resolves the issue.
    Here is a similar thread below I suggest you refer to:
    Shared Folder Access
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/c0bbbe8e-55d8-467c-bb85-2b98f122cc15/shared-folder-access?forum=winserverPN
    Best Regards,
    Amy

Maybe you are looking for

  • Character Encoding in XML

    Hello All, I am not clear about solving the problem. We have a Java application on NT that is supposed to communicate with the same application on MVS mainframe through XML. We have a character encoding for these XML commands we send for communicatio

  • When starting up Mac it comes up with loading bar |?

    When I start my mac up it comes up with the log in display that is white and when i put my password in it  goes to a bar where it show how much it is loaded this is only since i updated to Yosemite.

  • E-mail, File

    Hi Guys, I am new to UTL_FILE, UTL_SMTP. I am using system user account. I wrote two stored procedures using them. Compilation is OK. But when I execute I have following error: SQL> CREATE OR REPLACE PROCEDURE write_file AS 2 lft_file_hdle UTL_FILE.F

  • How to make a New WAD template a default Template?

    Hello Guru's We have imported a WAD template into BI now we want to use it as a default template against the old one, can some bosy guide me through necessary settings to make this new wad template the default one, so that next time when user runs a

  • Installer failed to initialize, missing file?

    I tried to download Adobe creative suite 6 and everytime I do this pops up. I have already tried restarting it a few times and quitting applications and everything but it's not working. My computer is a brand new Macbook pro that is only about a week