Monday, February 22, 2016

Server 2012 or 2012R2 - RDP takes long time to logon (10 to 25 minutes)

I have found in our environment we have two particular network settings that have been linked with various issues.  If, when making an RDP connection to a Windows 2012 server the logon takes a long, long time try running these commands from an ELEVATED (Admin) command prompt:

1) netsh int tcp set global rss=disabled

Now test RDP.  If it works normal you are done.  If not, run this second command.

2) netsh int tcp set global chimney=disabled

Try again.  Hopefully it works now.  The values can be checked by running this command

netsh int tcp show global

if the problem re-occurs it can be addressed using a group policy preference modifying the registry settings as shown here:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
-EnableTCPChimney and EnableRSS will most likely need to be created as 32-bit REG_DWORDs.

  • Right-click EnableTCPChimney, and then click Modify.
  • In the Value data box, type 0, and then click OK.
  • Right-click EnableRSS, and then click Modify.
  • In the Value data box, type 0, and then click OK.
Another option is executing a computer based script running the above two netsh commands.

No comments:

New beginner's guide to PowerShell on my GitHub page

 I created a beginner's guide to PowerShell here: https://github.com/aamjohns/Powershell_Guide/blob/main/README.md I hope it helps someo...