Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

securing network folders

I need to be able to secure a network folder so that only 3 people have access to it and each time they access it it needs to prompt them for a username and password. This is a peer-to-peer network not using Active Directory.

further the customer requires that if he should close the network folder, the next time he logs into it it will prompt for username and password even if he has not logged off or restarted his computer.

here is a use case: customer signed into his computer on Monday morning and clicks the shortcut on the desktop to access this secure folder. The network share then will prompt him for a username and password and he is then able to access the files and work. Later, he gets up from his desk to take a short break and closes the window but does not log off or restart the computer after two or three minutes he returns click the icon on the desktop and again the share  prompts him for username and password.
I have tried multiple methods to accomplish this but Windows always remembers the username and password until the computer is restarted. I need the computer to disconnect completely from that network share when the user closes the window.
I am open to third-party software.

thank you in advance for any help
0
erocon
Asked:
erocon
2 Solutions
 
StampelCommented:
You can have your share disconnected using command net use /delete.

For example :
net use \\ServerName\Share /DELETE
0
 
Trenton KnewCommented:
You cannot do this with only windows file sharing.  The connection will persist unless you run the command in Stampel's comment.  

If someone walks away from the computer, however, you can instruct them to lock their workstation by pressing (windows key + L) and make this a security policy that all must follow, and you can also set the screen timeout under power options to automatically lock the workstation after 10 minutes of inactivity.  I can think of no way to create a credentials time-out that won't affect the user that is currently using the folder.  

The ugly hack to accomplish this, however, would be to create a batch script on the desktop to delete the network connection, and have them click THAT to close the folder.  The script would be again, what Stampel has posted.  
net use \\uncPathToShare delete

Open in new window


or to simply disconnect ALL shares...
net use * /delete

Open in new window


The problem here is that it ALSO requires you to train your employees to run the batch script everytime they are done with the folder.  To me, it's just as easy to enforce workstation locking as a company policy.  Make people do it the right way.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now