Serwer sieci Microsoft: rozłączaj klientów po upływie limitu czasu logowania: wartość rejestru EnableForcedLogOffKomputerHKLM\System\CurrentControlSet\Services\LanManServer\Parameters
- Kategoria
- Ustawienia zabezpieczeń › Zasady lokalne › Opcje zabezpieczeń
- Zakres
- Konfiguracja komputera
- Źródło
- Windows 11 (wersja 26H2 · 26300.9457)
Rejestr
EnableForcedLogOff
REG_DWORDKomputer- Wartość włączona
- 1
- Wartość wyłączona
- 0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters] ; Opcje (użyj tylko jednej) ; Włączone "EnableForcedLogOff"=dword:00000001 ; Wyłączone "EnableForcedLogOff"=dword:00000000
CMD
:: Opcje (użyj tylko jednej) :: Włączone reg add "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v "EnableForcedLogOff" /t REG_DWORD /d 1 /f :: Wyłączone reg add "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v "EnableForcedLogOff" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz New-Item -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Force | Out-Null # Opcje (użyj tylko jednej) # Włączone New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Name 'EnableForcedLogOff' -PropertyType DWord -Value 1 -Force | Out-Null # Wyłączone New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Name 'EnableForcedLogOff' -PropertyType DWord -Value 0 -Force | Out-Null