GPO to kill disconnected and idle RDP connections

Hello
I'm looking for a way to Kill RDP connection with idle & disconnected state. the server's owners usually connect to the servers from their PCs to the servers using the Remote Desktop Connection and they forget to disconnect properly. some left disconnected
connections cause an issue later for those user where their AD accounts get locked out due to reset their password.
now I want to apply a group policy on all servers in the domain to do:
kill disconnected connection after 1 hour.
kill idle connection after 4 hours.
our domain is windows 2008 R2 (native) and the we have a mix of OS running on the member servers. we have a few windows server 2003 R2 and the majority is windows server 2008 and windows server 2008 R2.
any idea is highly appreciated....
Systems Specialist

Hi
Actually in Windows Server 2003, Windows Server 2008 and Windows Server 2008 R2, both
set time limit for disconnect session and set time limit for active but idle RDP session group policy are in different location.
In Windows Server 2003 -> Computer Configuraiton\Administrative Templates\Windows Components\Terminal Services\Sessions
In Windows Server 2008 -> Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Terminal Server\Session Time Limits
In Windows Server 2008 R2 -> Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remtoe Desktop Session Host\Session Time limits.
Generally, there are three ways to achieve that "kill disconnected connection after 1 hour, kill idle connection after 4 hours
a. Edit it via GUI.
b. Edit it via Group policy.
c. Edit it via registry.
Using the Group policy is the recommended way, if both  set time limit for disconnect session
and set time limit for active but idle RDP session group policy have been applied successfully on the TS servers/RDS servers, then the registry
MaxDisconnectionTime=128238540 and MaxIdleTime=1282031640 under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services will be added.
So currently please check whether above registried have been written on these servers that you said didn't work.
Regards,
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • My ipod only connects to the wifi when i am in the room of the router. as soon as i go out of the room into some other room it disconnects and doesn't connect again. unless i go to the room of the router. i have an ipod 4 with ios 6.1.6

    my ipod only connects to the wifi when i am in the room of the router. as soon as i go out of the room into some other room it disconnects and doesn't connect again. unless i go to the room of the router. i have an ipod 4 with ios 6.1.6

    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now have this problem?
    Did the iPod stay connected before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. Could be a loose antenna connectin
    http://www.ifixit.com/Guide/iPod+Touch+4th+Generation+Wi-Fi+Antenna+Replacement/ 3640
    Apple Retail Store - Genius Bar

  • Idle RDP connections keep disconnecting?

    My Windows Server 2012 R2 remote desktop users keep being disconnected from idle sessions.  They get "Your Remote Desktop Services session ended because the remote computer didn't receive any input from you."
    Can anyone tell me why? I've change the GPO settings at "Computer Configuration\Polices\Admin Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits" both for the computer and user level but I still
    get this. For example I've even set "Set Time Limit for active but idle Remote desktop services sessions" to Enabled with the limit of "Never". 
    Does anyone know how do I stop this from happening?

    Hi,
    Thank you for your post in Windows Server Forum.
    Please check that you have also applied setting under Collection properties, session tab For Idle Session limit. I checked in my environment with 1 minute and able to disconnect idle session and then applying “Never” then it’s never ending the RDS session.
    For your reference, you can check the registry setting. When you will apply any group policy for idle session you can see the changes in registry.
    Hope it helps!
    Thanks,
    Dharmesh

  • Update has killed phone and can't connect to restore

    I have just run the latest update to v4.5.0.174 but the install failed and now the phone only displays an icon that looks like a dialog box with a circle, square and triangle in it, behind a circle with a line through it.
    I now can't get Desktop Manager to connect to the phone so I can't try to reinstall or even downgrade.
    How do I get my phone back?
    Thanks
    Stuart

    Stuart, Greetings, and welcome to the BlackBerry.com Support Forums.
    disconnect the BlackBerry from the USB and reboo the PC from off
    try it all again now, see if the DM will recognize the BlackBerry.
    if not, You will need to use JL_Cmder to wipe the device and subsequently load the OS to the device. Follow the instructions here:
    http://www.blackberryfaq.com/index.php/How_do_I_wipe_the_BlackBerry_using_Jl_Cmder%3F
    If JL_Cmder does not work, follow this instructional:
    http://www.blackberryfaq.com/index.php/What_to_do_next_if_Jl_Cmder_will_not_connect_and_wipe
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • ATV keeps disconnecting and losing network connection

    I konw this has been posted on seval discussion boards, but the answers are all over the place.  I have been watching Netflix over the last several weeks and noticed that almost routinely my ATV will stop playing and go back to the home screen.  Sometimes I am able to resume where I left off but more often it loses my network connection.  I have to unplug ATV or go through the menue and reset. 
    I have not had this problem until recently.  I have done all of the disconnecting, checking cables, restarting router, etc.  Nothing seems to work.  I even cancelled my Netflix subscription because I thought it was their issue.  However, I have learned that it must be the ATV itself.  I love my ATV, but I can't seem to figute out why this is happening.  I don't have any other issues with WiFi in my house or with any other devices.
    Any ideas if this is a software update issue?  I did read that people were having issues after the latest software update.

    We've had our ATV for about a year and it's always worked perfectly. But every day for the last five days it has needed to be reset each day. Doesn't matter if we are trying Netflix, YouTube, or Podcasts it will say "can't connect to server, try later." So we will either unplug it and plug it back in or select reset from the general menu then everything works again. Can't figure out why it's doing this. All software is up-to-date.

  • Allow connection to RDS applicatoins and restrict RDP connection for domain users

    I have configured RDS setup, with the following Roles: RD Web Access, RD Gate Way, RD Connection Broker, RD Session Host and RD Licensing.
    the problem is that the domain users can't run the published applications unless I add the "Domain Users" group into the remote desktop users on the RDS servers, but now all domain users can connect RDP to the RDS servers.
    so we need domain users to connect to the RDS published applications and restricting them from connecting RDP to the RDS servers, in addition I can see that internal servers are accessible from outside through the RD gateway server.
    any ideas ? 

    Hi,
    Thank you for posting in Windows Server Forum.
    For a test you can create one group, assign the specified user under that group. Add that group under “Remote Desktop User” local group. For getting access to published Remote Application you can simply assign\add the group under collection properties of the
    application and that user can get access.
    For restricting user to server remotely, you can add that group of user under “Deny logon through remote desktop service” under User Rights assignment. Also you can check “Deny
    New User Logons to an RD Session Host Server” settings.
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • My Daughter forgot passcode an ipod disabled. I started the restoration and in the middle itunes disconnects and states cannot connect to ipod because locked, put in passcode.

    My Daughter forgot her passcode and disabled her ipod touch.  When I do the restore settings on itunes. It starts out fine and then in the middle it disconnects the ipod and states that itunes can not connect due to passcode locked, enter passcode.  Any help would be appreciated.?

    iOS: Unable to update or restore

  • RV 120W corrupting email attachements and dropping RDP connections

    Hi,
    We've put in an RV120W for a client, and since they have had problems with emal attachements (notably PDFs) getting corrupted, ad RDP conenctions to their network being dropped.
    I found an article that suggested turning on the Content Filtering, which I have (althought the individual fileters are off as I don't want to block those things), and it may have improved, but still has a problem.
    Any advice?
    Thanks,
    Adam

    Hi, My name is Eric Moyers, I work in the Small Business Support Center. Were either of you given a case number when you called into the Support Center for help? If you were may I have them, if you were not I would like to invite you to call back and have a case opened. We need cases opened for all problems so that it is easy to know where resources need to be focused for the issues of customers. Thank you and rest assured we are working hard to solve all of your issues.

  • Mail mac disconnected and not working when mac back sleeping

    I have a problem with my mail app on imac and Mountain Lion installed.
    when the mac goes  in sleep mode, if the mail app was open,, on wake up all the accounts are disconnected and clicking the "connect the accounts" not working.
    To fix it I have always to close and open again the mail app for connect the accounts.
    With Lion this not happen.
    Any help?
    Regards
    Michele

    I have one other totally off the wall thought. OK educated guess, based on the fact that my day job involves writing file systems for other operating systems.
    I have seen implementations where file timestamps are not written to disk until they absolutely need to be written. Until it is needed, the fact that the file has been touched is kept in memory.
    Now I have only seen situations where it is the *Access Time* that is treated this way, NOT the *Modification Time*. The touch command modifies the Modification time by default. However, I do not know how the Mac OS X HFS+ file system deals with updating the on-disk timestamp values.
    One thing you could try. Instead of using touch, use the date command redirected to a file on the target disk
    0-59/12 * * * * date >/Volumes/MyHardDrive/.nospin.txt
    This will give you verification of when the cron job last ran and do more than just touch the Modification Time on the file.
    Or if you want a record of every time the cron job ran, change the > to >>
    0-59/12 * * * * date >>/Volumes/MyHardDrive/.nospin.txt

  • Disconnect idle AFP connections in ML?

    Back in Snow Leopard there was an option in Server Admin to set a time limit for idle AFP connections, automatically disconnecting users who are idle for a time period that I set. This option is no longer available in Mountain Lion, as far as I can see anyways. Does anyone know if it is still possible to se this. Perhaps via terminal?

    You should be able to set the following keys to enable this feature.   I will admit that I've not tried this but in theory this should work.
    sudo serveradmin settings afp:idleDisconnectOnOff = yes
    sudo serveradmin settings afp:idleDisconnectTime = 40
    The number is the number of minutes (40 in the above example).  There are also the individual flags for the user types.  They are:
    afp:idleDisconnectFlag:guestUsers = yes
    afp:idleDisconnectFlag:usersWithOpenFiles = yes
    afp:idleDisconnectFlag:registeredUsers = yes
    afp:idleDisconnectFlag:adminUsers = yes
    You can set them with prefixing sudo serveradmin settings to the beginning of each line.
    I would clearly suggest testing this with a relatively short time and if it works, reset to a time that you prefer. 
    R-
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • If I disconnect and connect the session which was currently working will not be avialable but a new session starts.

    Hi
    RDP connection over server 2008 R2 standard, if I disconnect and connect the session, which was currently working  will not be avialable but  a new session starts.
    what features should I add and how to configure so that if connection is lost the user should see the same session when they connect back.
    kind Regards,
    Jayanth

    Hi,
    Please enable this policy and try again.
    Restrict Users to a Single Session
    http://technet.microsoft.com/en-us/library/cc754762.aspx
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • When leave I nano 4th gen connected to either of my cars it no longer restarts playing when car is restarted. Instead it shows 'no entry' in the song title on the car audio display and won't play until disconnected and reconnected.

    Nano has worked fine for a couple of years being left connected to either one of our cars. However, every time car is restarted it won't play without being disconnected and reconnected. I have done a full restore.
    Current cars are Range Rover Sport 2011 and Jaguar XK 2011.
    Has anyone else experienced this issue?
    Thanks,

    I had a similar problem. Try resetting and erasing the phone and restoring from a known good backup.

  • I have pluged a portable battery to the USB and my macbook pro stopped working after that, right before it shut down there was a message on the screen that said something like " USB device is withdrawing so much power, please disconnect and connect again?

    I have plugged a portable battery to the USB and my macbook pro stopped working after that, right before it shut down there was a message on the screen that said something like " USB device is withdrawing so much power, please disconnect and connect again?
    if the device I connected have caused this, shouldn't the macbook itself have some type of protection that should prevent this from happening.
    because when I took it to an apple certified maintenance shop, the guy said that now it could only run while connected to the power. it won't run on batteries. and that I have to change the motherboard.
    can I just replace the damaged part only, would apple consider this as a design issue and they could pay for it, or should I just buy a new motherboard for 800$.
    Help.

    BB1B2,
    The problem is in finding a tech shop that will/can do board level repairs on Macs. They are few. And I certainly wouldn't spend $800 on a new logic board - I would replace the computer if I had to pay that much!
    You could call around to a few repair shops and see if they feel competent to isolate the problem and do a board level repair - but I'm afraid, in the end, that your search will be futile.
    Sorry,
    Clinton

  • I have an iphone 6 plus which show iphone disable connect to itunes. i tried to restore but it won't work and everytime it says "Iphone "Iphone" could not be restored because firmware file is corrupted disconnect and try again later"

    last night while i was sleeping at somone has tried to open my passcode if Iphone 6 plus model A1524. Now i cannot see the passcode screen and it just saysi phone is disable connect to itunes . Then i decided to restore my iphone and i have download almost 4 firmware files (iPhone7,1_8.3_12F70_Restore.ipsw and iPhone7,1_8.0_12A366_Restore.ipsw and iPhone7,1_8.0.1_12A402_Restore.ipsw and fourth one is iPhone7,1_8.2_12D508_Restore.ipsw.part) and restore (by holding shift in itunes and selecting file ) using itunes ( which is current version 12.1.2.27 64 bit) but for everytime two of them(while extracting ) which are (iPhone7,1_8.3_12F70_Restore.ipsw and iPhone7,1_8.2_12D508_Restore.ipsw.part) it says "Iphone "Iphone" could not be restored becuse firmware file was corrupted please disconnect and try again later" .i have tried to download "iPhone7,1_8.3_12F70_Restore.ipsw " manually and via itunes (when i download and restore using itunes it says
    "There was a problem downloading the software for the iPhone ''iPhone'' A unknown error occured (9006).
    Make sure your networks settings are correct and your network connection is active, or try again.''
    but nothing works (While for rest of two it says firmware file is not compatible).. I'm tired of these now as i'm working on this problem for 5 days ...
    Please help me as soon as possible..
    sorry for my poor english..

    Hello JD_NINJA,
    Thanks for using Apple Support Communities.
    Error 9006 when restoring your iOS device indicates that there is security software on your computer which is preventing connection to the Apple server or your device.  To troubleshoot this issue please follow the directions below.
    Check your security software
    Related errors: 2, 4, 6, 9, 1611, 9006. Sometimes security software can stop your device from communicating with either the Apple update server or with your device.
    Check your security software and settings to make sure that they aren't blocking a connection to the Apple servers.
    Get help with iOS update and restore errors - Apple Support
    When restoring your iPhone, please make sure to follow the directions in the link below to properly restore.
    Restore your device from an iCloud or iTunes backup - Apple Support
    Take care,
    Alex H.

  • When I connected my iPod to make a playlist, I got a message saying that iTunes had "detected an iPod that might be corrupted" and I could disconnect and try again- which hasn't worked- or restore.  Any thoughts?  I don't want to lose all of my playlists.

    I just connected my iPod after opening iTunes to make a playlist and repeatedly have gotten the message that 'iTunes has detected an iPod that might be corrupted."  I can either disconnect and try again, which I've done multiple times to no avail, or restore.  I don't want to lose the dozens of playlists, so do I have any options that anyone knows of?
    Thank you.

    What iPhone do you have? You can check in settings>>general>> about.
    If you have a 3G you cannot update beyond iOS 4.2.1. The 3G is over 4 years old an was discontinued over 2 1/2 years ago. You need the latest ios to run the latest versions of some apps. If you have a 3GS you can update.
    If your phone is not responding, reset it by pressing and holding down both the home button ad lock/ sleep button simultaneously until the Apple logo appears.

Maybe you are looking for

  • HP Officejet Pro 8600 and/or Plus: differences.

    Hi all, simple question. What's the difference, beside shape, little speed up and LCD screen, between: HP Officejet Pro 8600 HP Officejet Pro 8600 Plus Can't really find out if the second is worth 50 euro more. Also, do HP drivers work well with OS X

  • ITunes 11 won't install on my Windows 8 32-bit ?

    The install stops and says, I don't have sufficient permissions.  Then I try installing as Administrator.  Same results.  Then I try windows compatabilty and it doesn't work.  Any Suggestions? gnpmark

  • External Hard Drives... Internally?

    Hey guys, I need an external drive for editing with Final Cut Pro (it works much better than capturing video on an internal). So I was wondering, before I ask it on the FCP fora, can Finder/FCP see a second internal HD as an external, and treat it li

  • E71x blank display, backlight keeps blinking on an...

    I've had my E71x for a week and have not had any problems until now.  While trying to power the phone on, all I get is a blank display and then the backlight just blinks on and off.  The battery was fully charged when I turned the phone off.  I've tr

  • Can the ipad mini be read in sunlight

    Can the new ipad mini be read in sunlight