Microsoft 네트워크 서버: 로그온 시간이 만료되면 클라이언트 연결 끊기 레지스트리 값 EnableForcedLogOff컴퓨터HKLM\System\CurrentControlSet\Services\LanManServer\Parameters
레지스트리
EnableForcedLogOff
REG_DWORD컴퓨터- 활성 값
- 1
- 비활성 값
- 0
.reg · CMD · PowerShell로 적용하기
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters] ; 선택 항목 (하나만 사용) ; 사용 "EnableForcedLogOff"=dword:00000001 ; 사용 안 함 "EnableForcedLogOff"=dword:00000000
CMD
:: 선택 항목 (하나만 사용) :: 사용 reg add "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v "EnableForcedLogOff" /t REG_DWORD /d 1 /f :: 사용 안 함 reg add "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v "EnableForcedLogOff" /t REG_DWORD /d 0 /f
PowerShell
# 공통: 키 만들기 New-Item -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Force | Out-Null # 선택 항목 (하나만 사용) # 사용 New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Name 'EnableForcedLogOff' -PropertyType DWord -Value 1 -Force | Out-Null # 사용 안 함 New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Name 'EnableForcedLogOff' -PropertyType DWord -Value 0 -Force | Out-Null