Idle time not dropping idle SMB connection

DAXQHome 0 Reputation points
2023-12-14T17:29:18.4633333+00:00

Afternoon guru's - I have a user that would LIKE to be prompted every time they connect to a network share on a Linux computer (TrueNAS) from a Windows computer with SMB. The user logins and set up are working just as expected, but Windows 11 seems to be remembering the connection until a reboot occurs. So when my user visits (from explorer) \someserver\sharedfolder - they are prompted for authentication, with successful authentication - they can access the share and do all they need to do. When they close out of explorer and go about doing other normal business, they do NOT want windows to remember that connection. So if someone else should happen to sit down at the desktop, open explorer, click the history in the address bar and reopens \someserver\sharedfolder - it opens right up without prompting for authentication again. Because Windows11 is remembering the connection and authentication credentials. I've tried adjusting the Idle session time (min) and set net use /persistent:no via login script to no avail.

Is there some other way to accomplish what I'm looking for (e.g. having the Idle session time actually disconnect an idle share after 2 minutes)? Will I have to write a script for the user to net use /delete * and remap their persistent drives every time they need to use this share? or am I going about this all wrong?

Any input or suggestions are greatly appreciated!

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-12-18T02:30:32.8033333+00:00

    Hi,

    Please confirm that if the credential is recorded via Credential Manager:

    Type credential manager in the search box on the taskbar and select Credential Manager Control panel. Select Web Credentials or Windows Credentials and confirm that the credential has been recorded.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.