• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Network & Sharing Network Idle Session Time to Automatically Disconnect

Brink

Staff member
mvp
Messages
32,202
Location
Oklahoma, USA
Network Idle Session Time to Automatically Disconnect How to Change the Network Idle Session Time to Automatically Disconnect in Vista
This will show you how to change how long a Network (LAN) session to your computer can remain idle for in minutes before your computer automatically disconnects them, or to turn off auto disconnect.
Published by Brink Category: Network & Sharing 
#1
ByLine
How to Change the Network Idle Session Time to Automatically Disconnect in Vista
Synopsis
This will show you how to change how long a Network (LAN) session to your computer can remain idle for in minutes before your computer automatically disconnects them, or to turn off auto disconnect.
How to Change the Network Idle Session Time to Automatically Disconnect in Vista


information   Information
This will show you how to change how long a Network (LAN) session to your computer can remain idle for in minutes before your computer automatically disconnects them, or to turn off autodisconnect.
Note   Note
This is not for a internet connection. It is for the other computers connected to your computer by a Local Area Network (LAN) on the same workgroup or domain.
warning   Warning
After the set idle time, the users will be disconnected automatically from the local area network (LAN) session connection to your computer and they will have to log on again to access the allowed files on your computer. This will include mapped drives.




OPTION ONE
Using a Elevated Command Prompt

2. To Verify and See what the Current Idle Session Time (min) is
A) In the command prompt, type Net Config Server and press Enter. (See screenshot below)​
B) To the right of Idle session time (min), you will see the amount of idle minutes set to autodisconnect.​
NOTE: The default time is 15 minutes.​
Status.jpg
3. To Change the Idle Session Time (min) to Autodisconnect
A) In the elevated command prompt, type in bold below and press Enter. (See screenshot below)​
NOTE: Replace XX with a value of -1 to 65535 minutes. For 30 minutes, you would type:
net config server /autodisconnect:30
WARNING: -1 is to never autodisconnect, and 0 (number zero) will cause an almost instant autodisconnect.​
net config server /autodisconnect:XX

B) You will get a The command completed successfully message afterwards.​
Command.jpg

4. Close the elevated command prompt window.​
5. Restart the computer to apply.​
NOTE: You can verify the changes in step 2 above.​



OPTION TWO
Manually in Registry Editor

1. Open the Start Menu.​
2. In the white line (Start Search) area, type regedit and press Enter.​
3. Click on Continue in the UAC prompt.​
4. In regedit, go to: (See screenshot below step 5)​
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

5. In the right pane, right click on autodisconnect and click on Modify.​
NOTE: If autodisconnect is not here, then in the right pane, right click on a empty area and click on New and DWORD (32-bit) Value and type autodisconnect and press Enter.​
Reg1.jpg

6. Dot Decimal, and type in from 0 (number zero) to 65535 minutes for the idle time you want set and click on OK. (See screenshot below)​
NOTE: The default time is 15 minutes. You cannot enter -1 in the registry to never autodisconnect, instead you will have to use METHOD ONE if this is what you wanted to do.​
WARNING: Entering 0 (number zero) will cause an almost instant autodisconnect.​
Modify.jpg

7. The registry will now look similar to this with autodisconnect set to 30 minutes. (See screenshot below)​
Reg2.jpg

8. Close regedit.​
9. Restart the computer to apply changes.​
NOTE: You can verify the changes in OPTION ONE (step 2) above.​
That's it,
Shawn


 
Last edited:

My Computers

System One System Two

  • Show second system?
    Yes
    Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    PSU
    Seasonic Prime Titanium 850W
    Case
    Corsair Air 740
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech wireless K800
    Internet Speed
    300 Mb/s Download and 30 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Creative F200 webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL,
    Lumia 1520 phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD

Users Who Are Viewing This Thread (Users: 1, Guests: 0)