NO connects via remote desktop error 0x4

Microsoft remote desktop, error code 0x4

 

Issue:

  • Unable to connect: Your session ended because of an error. If this keeps happening, contact your network administrator for assistance. Error code 0x4


Correction:
  1. You will need connect in the Server (destination)
  2. Open regedit.exe
  3. Go to \hkey_local_machine\System\CurrentControlSet\Control\Terminal Server
  4. Add MaxOutstandingConnections (RDWORD) with 10000
  5. Done