Fixed: Session Has Been Disconnected Reason Code 0, 2, 5, 11, 12 (2024)

Table of Contents

Session has been disconnected reason code 0, 2, 5, 11, 12

A typical Event ID you may see when checking RDP connection event logsis Event ID 40. Event ID 40 is registered whenever a session is disconnected, that could be an interruption or the user disconnecting or logging off. Within the event text, we are given a reason code, which gives us detail on the disconnection, as shown in the following picture.

Most often, you’ll see the full error message Session has been disconnected, reason code 0/2/5/11/12. There are definitions for all codes:

  • Code 0 means that there is simply no additional information available for the disconnection.
  • Code 2 is similar to code 11; it is logged when an administrative tool was used to disconnect the session from another session.
  • Code 5 is generated when a user connects to the device using the same login but the system does not enable multiple concurrent sessions, causing another current connection to be disconnected.
  • Code 11 is registered when the user disconnecting from the session initiates the disconnection. This might be due to the user shutting the RDP window or to the usage of an administrative tool from the same session, such as the logoff command in CMD or a batch file, to force the disconnect.
  • Code 12 is registered when the disconnection was initiated by the user logging off their session on the machine.

Six solutions to fix the RDP session disconnection

Here are six solutions to help you fix the RDP session disconnection problem. If you are facing Session has been disconnected, reason code 12 or Session 2 has been disconnected, reason code 5, try the solutions below.

Solution 1. Ping the server IP Address via CMD

Some users reflected that the RDP session disconnection problem happens whenthe remote session is dropped to the taskbar and another program becomes the primary application used while RDP is running in the background. Therefore, users can ping their IP addresses viaCMD to keep the remote session active even if it is minimized.

Step 1. Press Win + R to invoke the Run dialog box. Type in “cmd” and hit OK to open Command Prompt.

Step 2. Enter the command “ping -t SERVER_IP”. (Replace SERVER_IP with your IP Address)

Note: If you don’t know how to getthe IP Address, pressWin + R to invoke the Run dialog box. Type in “cmd” and press OK. Then type in “ipconfig” and press Enter. Now you can see a group of IP addresses, of which the IPv4 address is the one you need.

Solution 2. Checkthe Registry Editor

Another solution to troubleshoot RDP session disconnection is to check the Registry settings.

Step 1. Press Win + R and then type in “regedit” to open the Registry Editor.

Step 2. Navigate here: HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > TermService. Find and double-click ObjectName.

Step 3. Input the Value data as NT Authority\NetworkService. Then click OK.

Solution 3. Check the Local Group Policy

According to some users, RDP session disconnection may also be caused by the session time limit setting. Users can change the settings to configure a time limit for RDP session timeout.

Step 1. Press Win + R to invoke the Run dialog box. Type in “gpedit.msc” and hit OK to open Registry Editor.

Step 2. Navigate here: Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits. Find “Set time limit for disconnected session” and “Sets a time limit for active but idle Terminal Services sessions” on the right pane.

Step 3. Enable “Set time limit for disconnected session” to Never, and then enable “Sets a time limit for active but idle Terminal Services sessions” to Never.

Solution 4. Change the device settings used for the remote session

It has been tested by some users that unselecting the option Smart cards or Windows Hello for Business helps troubleshoot the RDP session disconnection problem.

Step 1. Search for Remote Desktop Connection in the search box and then start RDP. Select More Options.

Step 2. Switch to Local Resources and then click More.

Step 3. Find the option Smart cards or Windows Hello for Business and then unselect it.

Solution 5. Verify RDP limit number of connections policy

Sometimes, when the number of RDP sessions that can be active on a server is exceeded, users may experience RDP session disconnection. Therefore, users can follow the steps below to verify and change the number of connections that they want to allow.

Step 1. Open the Local Group Policy.

Step 2. Navigate here: Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections. Find Limit number of connections.

Step 3. Click Enabled. In the RD Maximum Connections allowed box, type the maximum number of connections that you want to allow, and then click OK.

Solution 6. Disable restriction on simultaneous RDPsessions

Additionally, you may utilize Remote Desktop Services to modify Group Policy so that users are permitted to make multiple simultaneous remote connections. Additionally, this could assist in resolving the disconnect issue brought on by the quantity of Remote Desktop sessions.

Step 1. Open the Local Group Policy.

Step 2. Navigate here: Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections. On the right pane, find Restrict Remote Desktop Services users to a single Remote Desktop Services session and double-click it.

Step 3. Then disable the policy setting.

Note: Normally, Windows OS only allowsone simultaneous incoming RDP connection and Windows Server OS allows two. If you wantto enable more remote desktop connections, please buy RDS CALs.

Bonus tip: Stable remote access software-AnyViewer

We sincerely hope you can solve Session has been disconnected reason code error with the solutions we give. But if still not, you are highly recommended to useAnyViewer, a free yet stable remote access software that allows you to remotely access another PC. With AnyViewer, you don’t need to worry about the remote session disconnection problem anymore.

Secure Download

Step 1. On both computers, download, install, and launch AnyViewer. Go to Log in on the Controller computer, and then click Sign up(if you have already signed up on its official website, you can log in directly).

Step 2. Fill out the signup form andyou should now see that you have successfully logged into AnyViewer. Your device will be assigned to the account to which you have logged in automatically.

Step 3. Sign in with the same AnyViewer account on both computers, then click the One-clickcontrol for unattended remote access.

Step 4. The remote desktop will appear once the connection is established. After that, you have complete control over it.

It is recommended toupgradeyour accountto a Professional or Enterprise plan, which can bringyou:
✔ More devices can be assigned to the same account for one-click unattended remote access, and power management.
✔ Connect in privacy modeto protect your privacy. This means the Controller can black out the remote PC screen and disable the remote keyboard and mouse click.
✔ File transfer speed will be increased. Transfer speed is 500 KB/s for a free account and up to 10 MB/s for a paid account.

Conclusion

This post primarily introduces what does “Session has been disconnected reason code0/2/5/11/12” error message means and how to fix RDP session disconnection. If you want a more stable remote access tool, try AnyViewer.

Fixed: Session Has Been Disconnected Reason Code 0, 2, 5, 11, 12 (2024)
Top Articles
3 Ways to Sprint in Minecraft - wikiHow
EUR to USD Forecast: Euro vs US Dollar 2024, 2025-2030 | CoinCodex
Toa Guide Osrs
Places 5 Hours Away From Me
Cintas Pay Bill
1970 Chevelle Ss For Sale Craigslist
The Best English Movie Theaters In Germany [Ultimate Guide]
Athletic Squad With Poles Crossword
Gt Transfer Equivalency
Select Truck Greensboro
4302024447
Job Shop Hearthside Schedule
Hoe kom ik bij mijn medische gegevens van de huisarts? - HKN Huisartsen
Most McDonald's by Country 2024
9044906381
Directions To 401 East Chestnut Street Louisville Kentucky
8664751911
Where to Find Scavs in Customs in Escape from Tarkov
BMW K1600GT (2017-on) Review | Speed, Specs & Prices
Egizi Funeral Home Turnersville Nj
Plaza Bonita Sycuan Bus Schedule
What Are The Symptoms Of A Bad Solenoid Pack E4od?
Utexas Iot Wifi
Pain Out Maxx Kratom
Evil Dead Rise Showtimes Near Sierra Vista Cinemas 16
897 W Valley Blvd
Mercedes W204 Belt Diagram
Swimgs Yuzzle Wuzzle Yups Wits Sadie Plant Tune 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Autumns Cow Dog Pig Tim Cook’s Birthday Buff Work It Out Wombats Pineview Playtime Chronicles Day Of The Dead The Alpha Baa Baa Twinkle
Mumu Player Pokemon Go
UPS Drop Off Location Finder
How does paysafecard work? The only guide you need
Arcane Odyssey Stat Reset Potion
Staar English 1 April 2022 Answer Key
Pillowtalk Podcast Interview Turns Into 3Some
Top-ranked Wisconsin beats Marquette in front of record volleyball crowd at Fiserv Forum. What we learned.
Daily Jail Count - Harrison County Sheriff's Office - Mississippi
Poe Flameblast
Columbia Ms Buy Sell Trade
Prior Authorization Requirements for Health Insurance Marketplace
Jasgotgass2
Pro-Ject’s T2 Super Phono Turntable Is a Super Performer, and It’s a Super Bargain Too
11 Best Hotels in Cologne (Köln), Germany in 2024 - My Germany Vacation
Rocky Bfb Asset
Levi Ackerman Tattoo Ideas
Fatal Accident In Nashville Tn Today
Candise Yang Acupuncture
American Bully Puppies for Sale | Lancaster Puppies
Www Pig11 Net
Ronnie Mcnu*t Uncensored
Thrift Stores In Burlingame Ca
4015 Ballinger Rd Martinsville In 46151
Www.card-Data.com/Comerica Prepaid Balance
Latest Posts
Article information

Author: Lakeisha Bayer VM

Last Updated:

Views: 6165

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Lakeisha Bayer VM

Birthday: 1997-10-17

Address: Suite 835 34136 Adrian Mountains, Floydton, UT 81036

Phone: +3571527672278

Job: Manufacturing Agent

Hobby: Skimboarding, Photography, Roller skating, Knife making, Paintball, Embroidery, Gunsmithing

Introduction: My name is Lakeisha Bayer VM, I am a brainy, kind, enchanting, healthy, lovely, clean, witty person who loves writing and wants to share my knowledge and understanding with you.