RDP session time out(cmd)
* GUI로 설정하기 : https://plastic2113.tistory.com/entry/Windows-RDP-session-time-outGUI
[Windows] RDP session time out(GUI)
[Win + R] > gpedit.msc : 로컬 그룹 정책 편집기 실행 [로컬 그룹 정책 편집기 > 컴퓨터 구성 > 관리 템플릿 > Windows 구성 요소 > 터미널 서비스 > 원격 데스크톱 세션 호스트 > 세션 시간 제한] 탭에 활성
plastic2113.tistory.com
* PowerShell로 설정하기 : https://plastic2113.tistory.com/entry/windows-RDP-session-time-outPowerShell
[windows] RDP session time out(PowerShell)
RDP session time out(PowerShell) * GUI로 설정하기 : https://plastic2113.tistory.com/entry/Windows-RDP-session-time-outGUI [Windows] RDP session time out(GUI) [Win + R] > gpedit.msc : 로컬 그룹 정책 편집기 실행 [로컬 그룹 정책 편집
plastic2113.tistory.com
1. cmd창에 registry값 설정
[Win + R] > cmd : 명령 프롬프트 실행
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d "[최대 접속시간]"
* 아래 예시는 15분으로 설정, 최대 접속시간은 PowerShell의 값과 동일한 value값 가능
최대 접속시간 | Value |
사용안함 | 0 |
1분 | 60000 |
5분 | 300000 |
10분 | 600000 |
15분 | 900000 |
30분 | 1800000 |
1시간 | 3600000 |
2시간 | 7200000 |
3시간 | 10800000 |
6시간 | 21600000 |
8시간 | 28800000 |
12시간 | 43200000 |
16시간 | 57600000 |
18시간 | 64800000 |
1일 | 86400000 |
2일 | 172800000 |
3일 | 259200000 |
4일 | 345600000 |
5일 | 432000000 |
2. 설정한 registry값 확인
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime"
출력되는 값을 확인하면 16진수인 0xdbba0으로 표현하며, 해당 값을 10진수로 표현하면 900000으로 위에서 설정한 15분으로 확인할 수 있음.
* PowerShell과 동일하게 리부팅으로 적용하며 제한시간 후 경고창을 확인 가능
3. 설정된 registry값 삭제
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime"
값을 삭제한 후 다시 확인해보면 '지정된 레지스트리 값을 찾을 수 없습니다.'로 값이 삭제되었음을 확인
'Windows' 카테고리의 다른 글
[Windows] Windows 11 우회 설치 (0) | 2024.05.18 |
---|---|
[Windows] 사용자 및 관리자 암호 변경 (0) | 2023.11.13 |
[windows] RDP session time out(PowerShell) (0) | 2023.10.30 |
[windows] 윈도우 관리자(Administrator) 활성화 (0) | 2023.10.19 |
[Windows] RDP session time out(GUI) (0) | 2023.10.05 |