Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

RDP 연결 - Because of a protocol error (code: 0x112f), the remote session will be disconnected.

RDP 연결 시 다음과 같은 오류 메시지가 발생한다면?

Remote Desktop Connection

Because of a protocol error (code: 0x112f), the remote session will be disconnected.
Please try connecting to the remote computer again.

아래의 글에서 원인을 설명합니다.

Remote desktop connection protocol error 0x112f [closed]
; https://stackoverflow.com/questions/31402343/remote-desktop-connection-protocol-error-0x112f

제 경우에도 모니터 3개를 rdp에 매핑해,

RDP(mstsc.exe)의 다중 모니터 옵션 /multimon, /span
; https://www.sysnet.pe.kr/2/0/12463

사용하는 경우 발생한 것인데 왠지 느낌적인 느낌으로 ^^; AMD Radeon이라 더 심하게 발생하는 것이 아닌가... 하는 의심이 듭니다.

암튼, 이런 현상이 발생할 때 원격지에서 할 수 있는 것은 RDP 서비스 재시작인데요, 이를 위해 우선 "net use"로 인증을 하고,

// 원격 머신의 IP가 192.168.100.50, 사용자 계정이 testusr인 경우라고 가정

C:\WINDOWS\system32> net use \\192.168.100.50\IPC$ /USER:"testusr"
The password or user name is invalid for \\192.168.100.50\IPC$.

Enter the password for 'testusr' to connect to '192.168.100.50':
The command completed successfully.

서비스를 내리려고 시도했지만,

c:\temp> sc \\192.168.100.50 query TermService

의존하고 있는 서비스를 내리는 중 실패를 했다는 메시지와 함께 내려가지 않았습니다. 어쩔 수 없군요, ^^; 재시작을 하는 것이 차선책이 될 것입니다.

c:\temp> shutdown /r /t 20 /m \\192.168.100.50




참고로, "Remote desktop connection protocol error 0x112f [closed]" 글에 있는 명령어 중 tasklist는 이런 식으로 수행하면 됩니다.

c:\temp> tasklist /S 192.168.100.50 /U testusr /V /FI "MEMUSAGE gt 10000"

재미있는 것은, 위와 같은 모든 명령어들이 "net use ..."를 통한 인증으로 잘 동작했던 반면, qwinsta 만큼은 인증을 할 수가 없었습니다.

C:\WINDOWS\system32> qwinsta.exe /SERVER:192.168.100.50
Error 5 getting sessionnames
Error [5]:Access is denied.




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 7/13/2021]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 



2021-08-07 10시35분
[난인간이다] 꼼수로 문제 해결방법을 한가지 찾았습니다
문제 겪는분들과 공유하기위해 글 씁니다.
프로토콜 오류 발생시 Anydesk 같은 원격 관리툴로 한번 접속 후
다시 rdp 접속을 시도하면 연결이 되네요
[guest]

... 121  122  123  124  125  126  127  128  129  [130]  131  132  133  134  135  ...
NoWriterDateCnt.TitleFile(s)
1805정성태11/5/201421895.NET Framework: 476. Visual Studio에서 Mono용 Profiler 개발 [3]파일 다운로드1
1804정성태11/5/201428125.NET Framework: 475. ETW(Event Tracing for Windows)를 C#에서 사용하는 방법 [9]파일 다운로드1
1803정성태11/4/201420224오류 유형: 261. Windows Server Backup 오류 - Error in backup of E:\$Extend\$RmMetadata\$TxfLog
1802정성태11/4/201422211오류 유형: 260. 이벤트 로그 - Windows Error Reporting / AEAPPINVW8
1801정성태11/4/201427472오류 유형: 259. 이벤트 로그 - Windows Error Reporting / IPX Assertion / KorIME.exe [1]
1800정성태11/4/201418222오류 유형: 258. 이벤트 로그 - Starting a SMART disk polling operation in Automatic mode.
1799정성태11/4/201423014오류 유형: 257. 이벤트 로그 - The WMI Performance Adapter service entered the stopped state.
1798정성태11/4/201431769오류 유형: 256. 이벤트 로그 - The WinHTTP Web Proxy Auto-Discovery Service service entered the stopped state. [1]
1797정성태11/4/201417421오류 유형: 255. 이벤트 로그 - The Adobe Flash Player Update Service service entered the stopped state.
1796정성태10/30/201424483개발 환경 구성: 249. Visual Studio 2013에서 Mono 컴파일하는 방법
1795정성태10/29/201426982개발 환경 구성: 248. Lync 2013 서버 설치 방법
1794정성태10/29/201422468개발 환경 구성: 247. "Microsoft Office 365 Enterprise E3" 서비스에 대한 간략 소개
1793정성태10/27/201423065.NET Framework: 474. C# - chromiumembedded 사용 - 두 번째 이야기 [2]파일 다운로드1
1792정성태10/27/201423227.NET Framework: 473. WebClient 객체에 쿠키(Cookie)를 사용하는 방법
1791정성태10/22/201422949VC++: 83. G++ - 템플릿 클래스의 iterator 코드 사용에서 발생하는 컴파일 오류 [5]
1790정성태10/22/201418489오류 유형: 254. NETLOGON Service is paused on [... AD Server...]
1789정성태10/22/201421113오류 유형: 253. 이벤트 로그 - The client-side extension could not remove user policy settings for '...'
1788정성태10/22/201423155VC++: 82. COM 프로그래밍에서 HRESULT 타입의 S_FALSE는 실패일까요? 성공일까요? [2]
1787정성태10/22/201431352오류 유형: 252. COM 개체 등록시 0x8002801C 오류가 발생한다면?
1786정성태10/22/201432653디버깅 기술: 65. 프로세스 비정상 종료 시 "Debug Diagnostic Tool"를 이용해 덤프를 남기는 방법 [3]파일 다운로드1
1785정성태10/22/201421913오류 유형: 251. 이벤트 로그 - Load control template file /_controltemplates/TaxonomyPicker.ascx failed [1]
1784정성태10/22/201429976.NET Framework: 472. C/C++과 C# 사이의 메모리 할당/해제 방법파일 다운로드1
1783정성태10/21/201423356VC++: 81. 프로그래밍에서 borrowing의 개념
1782정성태10/21/201420099오류 유형: 250. 이벤트 로그 - Application Server job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance
1781정성태10/21/201420510디버깅 기술: 64. new/delete의 짝이 맞는 경우에도 메모리 누수가 발생한다면?
1780정성태10/15/201424186오류 유형: 249. The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
... 121  122  123  124  125  126  127  128  129  [130]  131  132  133  134  135  ...