Prevent mapped drives from auto disconnecting

Sometimes mapped drives would auto disconnect after some period of inactivity. The drives usually come back when double clicked on, however sometimes it causes strange behaviour with certain applications when they disconnect. To fix this, you can use a command line or registry fix on the server hosting the mapped drive share. You can give the following command: "net config server /autodisconnect:-1" OR You can use the following registry fix which will disable the auto disconnect feature all together: Edit HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters and Set the REG_DWORD value "autodisconnect" to HEX 0xffffffff