How to keep RAS connections active after logging off

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article was previously published under Q158909
SUMMARY
When you log off from a Windows Remote Access Service (RAS)client, any RAS connections will be disconnected automatically. To remainconnected after logging off, you may enable the KeepRasConnections key inthe registry on the RAS client.

Note: This behavior is different from versions of Windows NT RAS earlier than Windows NT 4.0; earlier version of Windows NT remain connected when logging off from the local computer.
MORE INFORMATION
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows

To modify the behavior of RAS when logging off, change the value of thefollowing registry key:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
KeepRasConnections REG_SZ
Range: 0 or 1
Default: 0 (disabled)
You should restart the computer after making this change.

By default, when logging off, Windows closes all RAS connectionsopened during the session. If this registry key value is added and set to1, the system will not close RAS connections when logging off. Thisregistry key value does not appear in the registry unless you add it.

Note Changing the
KeepRasConnections
registry key to remain connected after you log off from a RAS client is not supported in Windows Vista."
prodnt logoff disconnect logon log persistent
Properties

Article ID: 158909 - Last Review: 10/11/2007 02:30:58 - Revision: 2.5

Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server, Microsoft Windows 2000 Professional Edition, Microsoft Windows 2000 Datacenter Server, Microsoft Windows NT Workstation 4.0 Developer Edition, Microsoft Windows NT Server 4.0 Standard Edition, Microsoft Windows Server 2003 Standard Edition (32-bit x86), Microsoft Windows Server 2003, Enterprise Edition (32-bit x86), Microsoft Windows Server 2003, Standard x64 Edition, Microsoft Windows Server 2003, Enterprise x64 Edition, Microsoft Windows XP Professional, Microsoft Windows XP Home Edition

  • kbhowto kbnetwork KB158909
Feedback