Friday, July 22, 2011

Windows 7 random RDP disconnects.

The windows 7 client when RDP'ing into windows 2008 servers are randomly getting disconnected if the user min the RDP window even for like 20 seconds. It will try to reaquire the RDP session once the RDP screen is maximized. After a little bit of research below are the steps I took to remedy this issue.

Disable autotunning. Open an cmd windows with admin rights and issue the below command
netsh interface tcp set global autotuninglevel=disabled
You can check to see if this is disabled or not by running
netsh interface tcp show global
If you want to enable it back run the below command
netsh interface tcp set global autotuninglevel=normal

Change the MTU size from default value 1500 to 1300 following below steps
netsh interface ipv4 show interface
netsh interface ipv4 set subinterface "Local Area Connection" mtu=1300 store=persistent

There might be multiple other reasons as well you can try rolling back the NIC drivers, disabling the "Power Management" feature, depending on the network backbone try diff speed settings from AUTO to 100/Half, 100/Full. Looking at couple of other settings as well. Will first try them on the test servers and will post the results.

No comments: