Microsoft network server: Amount of idle time required before suspending session: registry value AutoDisconnectComputerHKLM\System\CurrentControlSet\Services\LanManServer\Parameters
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
AutoDisconnect
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Microsoft network server: Amount of idle time required before suspending session
- Value type
- REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters] "AutoDisconnect"=dword:<enter value>
CMD
reg add "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v "AutoDisconnect" /t REG_DWORD /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Name 'AutoDisconnect' -PropertyType DWord -Value '<enter value>' -Force | Out-Null