활성 원격 데스크톱 서비스 세션에 대한 시간 제한 설정 레지스트리 값 MaxConnectionTime (HKLM Terminal Services)컴퓨터HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- 정책 ID
- TS_SESSIONS_Limits_2
- 범위
- 컴퓨터 구성
- 지원 OS
- Windows Server 2003 운영 체제 또는 Windows XP Professional 이상
- 출처
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (버전 1.0)
- 카테고리
- Windows 구성 요소 › 터미널 서비스 › 원격 데스크톱 세션 호스트 › 세션 시간 제한
레지스트리
MaxConnectionTime
REG_DWORD컴퓨터- 활성 값
- 선택 값에 따름
- 요소
- 활성 세션 제한:
| 항목 | 저장 값 |
|---|---|
| 사용 안 함 | 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 |
.reg · CMD · PowerShell로 적용하기
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services] ; 선택 항목 (하나만 사용) ; 사용 안 함 "MaxConnectionTime"=dword:00000000 ; 1분 "MaxConnectionTime"=dword:0000ea60 ; 5분 "MaxConnectionTime"=dword:000493e0 ; 10분 "MaxConnectionTime"=dword:000927c0 ; 15분 "MaxConnectionTime"=dword:000dbba0 ; 30분 "MaxConnectionTime"=dword:001b7740 ; 1시간 "MaxConnectionTime"=dword:0036ee80 ; 2시간 "MaxConnectionTime"=dword:006ddd00 ; 3시간 "MaxConnectionTime"=dword:00a4cb80 ; 6시간 "MaxConnectionTime"=dword:01499700 ; 8시간 "MaxConnectionTime"=dword:01b77400 ; 12시간 "MaxConnectionTime"=dword:02932e00 ; 16시간 "MaxConnectionTime"=dword:036ee800 ; 18시간 "MaxConnectionTime"=dword:03dcc500 ; 1일 "MaxConnectionTime"=dword:05265c00 ; 2일 "MaxConnectionTime"=dword:0a4cb800 ; 3일 "MaxConnectionTime"=dword:0f731400 ; 4일 "MaxConnectionTime"=dword:14997000 ; 5일 "MaxConnectionTime"=dword:19bfcc00
CMD
:: 선택 항목 (하나만 사용) :: 사용 안 함 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 0 /f :: 1분 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 60000 /f :: 5분 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 300000 /f :: 10분 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 600000 /f :: 15분 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 900000 /f :: 30분 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 1800000 /f :: 1시간 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 3600000 /f :: 2시간 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 7200000 /f :: 3시간 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 10800000 /f :: 6시간 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 21600000 /f :: 8시간 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 28800000 /f :: 12시간 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 43200000 /f :: 16시간 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 57600000 /f :: 18시간 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 64800000 /f :: 1일 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 86400000 /f :: 2일 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 172800000 /f :: 3일 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 259200000 /f :: 4일 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 345600000 /f :: 5일 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxConnectionTime" /t REG_DWORD /d 432000000 /f
PowerShell
# 공통: 키 만들기 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null # 선택 항목 (하나만 사용) # 사용 안 함 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 0 -Force | Out-Null # 1분 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 60000 -Force | Out-Null # 5분 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 300000 -Force | Out-Null # 10분 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 600000 -Force | Out-Null # 15분 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 900000 -Force | Out-Null # 30분 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 1800000 -Force | Out-Null # 1시간 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 3600000 -Force | Out-Null # 2시간 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 7200000 -Force | Out-Null # 3시간 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 10800000 -Force | Out-Null # 6시간 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 21600000 -Force | Out-Null # 8시간 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 28800000 -Force | Out-Null # 12시간 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 43200000 -Force | Out-Null # 16시간 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 57600000 -Force | Out-Null # 18시간 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 64800000 -Force | Out-Null # 1일 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 86400000 -Force | Out-Null # 2일 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 172800000 -Force | Out-Null # 3일 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 259200000 -Force | Out-Null # 4일 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 345600000 -Force | Out-Null # 5일 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxConnectionTime' -PropertyType DWord -Value 432000000 -Force | Out-Null