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:
- You will need connect in the Server (destination)
- Open regedit.exe
- Go to \hkey_local_machine\System\CurrentControlSet\Control\Terminal Server
- Add MaxOutstandingConnections (RDWORD) with 10000
- Done