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]

... 46  47  48  49  [50]  51  52  53  54  55  56  57  58  59  60  ...
NoWriterDateCnt.TitleFile(s)
12400정성태11/5/20207775오류 유형: 679. Visual Studio - "Source Not Found" 창에 "Decompile source code" 링크가 없는 경우
12399정성태11/5/202011454.NET Framework: 961. C# 9.0 - (10) 대상으로 형식화된 조건식(Target-typed conditional expressions)파일 다운로드1
12398정성태11/4/20209985오류 유형: 678. Windows Server 2008 R2 환경에서 Powershell을 psexec로 원격 실행할 때 hang이 발생하는 문제
12397정성태11/4/202010163.NET Framework: 960. C# - 조건 연산자(?:)를 사용하는 경우 달라지는 메서드 선택 사례파일 다운로드1
12396정성태11/3/20208450VS.NET IDE: 152. Visual Studio - "Tools" / "External Tools..."에 등록된 외부 명령어에 대한 단축키 설정 방법
12395정성태11/3/20209795오류 유형: 677. SSMS로 DB 접근 시 The server principal "..." is not able to access the database "..." under the current security context.
12394정성태11/3/20208187오류 유형: 676. cacls - The Recycle Bin on ... is corrupted. Do you want to empty the Recycle Bin for this drive?
12393정성태11/3/20208687오류 유형: 675. Visual Studio - 닷넷 응용 프로그램 디버깅 시 Disassembly 창에서 BP 설정할 때 "Error while processing breakpoint." 오류
12392정성태11/2/202012799.NET Framework: 959. C# 9.0 - (9) 레코드(Records) [4]파일 다운로드1
12390정성태11/1/202011038디버깅 기술: 173. windbg - System.Configuration.ConfigurationErrorsException 예외 분석 방법
12389정성태11/1/202010779.NET Framework: 958. C# 9.0 - (8) 정적 익명 함수 (static anonymous functions)파일 다운로드1
12388정성태10/29/202010230오류 유형: 674. 어느 순간부터 닷넷 응용 프로그램 실행 시 System.Configuration.ConfigurationErrorsException 예외가 발생한다면?
12387정성태10/28/202011017.NET Framework: 957. C# - static 필드의 정보가 GC Heap에 저장될까요? [3]파일 다운로드1
12386정성태10/28/202011262Linux: 34. 사용자 정보를 함께 출력하는 리눅스의 ps 명령어 사용 방법
12385정성태10/28/20209075오류 유형: 673. openssl - req: No value provided for Subject Attribute CN, skipped
12384정성태10/27/202010296오류 유형: 672. AllowPartiallyTrustedCallers 특성이 적용된 어셈블리의 struct 멤버 메서드를 재정의하면 System.Security.VerificationException 예외 발생
12383정성태10/27/202011181.NET Framework: 956. C# 9.0 - (7) 패턴 일치 개선 사항(Pattern matching enhancements) [3]파일 다운로드1
12382정성태10/26/20208897오류 유형: 671. dotnet build - The local source '...' doesn't exist
12381정성태10/26/202010579VC++: 137. C++ stl map의 사용자 정의 타입을 key로 사용하는 방법 [1]파일 다운로드1
12380정성태10/26/20207973오류 유형: 670. Visual Studio - Squash_FailureCommitsReset
12379정성태10/21/202010990.NET Framework: 955. .NET 메서드의 Signature 바이트 코드 분석 [1]파일 다운로드2
12378정성태10/15/202010400.NET Framework: 954. C# - x86/x64 환경에 따라 달라지는 P/Invoke 함수의 export 이름파일 다운로드1
12377정성태10/15/202011694디버깅 기술: 172. windbg - 파일 열기 시점에 bp를 걸어 파일명 알아내는 방법(Managed/Unmanaged)
12376정성태10/15/20208406오류 유형: 669. windbg - sos의 name2ee 명령어 실행 시 "Failed to request module list." 오류
12375정성태10/15/20209794Windows: 177. 윈도우 탐색기에서 띄우는 cmd.exe 창의 디렉터리 구분 문자가 'Yen(¥)' 기호로 나오는 경우 [1]
12374정성태10/14/202014423.NET Framework: 953. C# 9.0 - (6) 함수 포인터(Function pointers) [1]파일 다운로드2
... 46  47  48  49  [50]  51  52  53  54  55  56  57  58  59  60  ...