FILE SHARE LOGINS STICKING

Okay..will try and explain to my best...

I have one site with 30 users...i also have a widows 7 pro machine and sharing a folder on it for all users to access....By default win7 will only allow 20 connections at one time to shared folder...here is what is weird....all users are on domain computers also...so is win7 file share machine...

when i login to win7 file share machine and check sessions i see 20 users logged in....not nothing weird but the weird part is.....as soon as a user logs into their machine it shows them as connected to this win7 file share machine....they have mapped drives to this location on desktop..but the user doesnt need to connect to it for it to show up as logged into win7 file share machine....

why is this and how to stop this from happening or is their away to increase limit from 20 users to 40 users allowed....
westhelpdeskAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kevinhsiehCommented:
If this is a domain environment, why are you sharing a workstation instead of a server? Historically, workstation (desktop) editions of Windows allowed only 10 connections, so I am surprised Windows 7 is allowing 20. Your solution is to use Windows Server or a Linux server. To try to have more connections is a violation of the license agreement with Microsoft.
0
cantorisCommented:
The process of mapping the drive on login will be eating one of the licenses.
Forty users ... you really need a proper fileserver.
0
Lionel MMSmall Business IT ConsultantCommented:
How are the other users connecting to the share? Do you have a logon script? Did you setup the connection via Windows explore? How?
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

westhelpdeskAuthor Commented:
First, Windows 7 allows 20 users by default not 10..xp is 10...win 7- 20 and i believe win8 no limitation...

I know what i need but that is not what i have nor going to be so i need to work with what i got...not meant to be smart but this is what i have...

This is a domain enviroment...i have a mapped drive through server 08 r2 to this computer and share...but there is also a shortcut on users desktops to the machine locally...

My issue is when users login to their domain system it shows them connected to the windows 7 machine whether they are in a file or not...this is weird for it shouldnt show them on this computer unless they are in the files...not sure why it is doing this...

Any help is appreciated...
0
kevinhsiehCommented:
The connection is made when the drive is mapped. This is expected behavior. You can not do the drive mapping and then only do the shortcut...this should reduce the number of connections that are open but idle.

Anything you try is going to just be a band aid.
0
westhelpdeskAuthor Commented:
so a work around is to disable mapped drive through server 08r2 and just place a shortcut on users desktops to the file location locally...correct????

This would eliminate users connecting to location when just logging into domain computer...correct???

Thanks for the help!!!
0
kevinhsiehCommented:
Yes, it would help.
0
westhelpdeskAuthor Commented:
Ok, one more question...if i would create a shortcut on all users desktop through GP Server08 R2 would this result in same behavior as mapped drive or no??

Thanks for you help!
0
westhelpdeskAuthor Commented:
ok,,,did test with mapped drive gone....and when users login to system it doesnt show them logged into share folder system but if they click on shortcut to share then you see them which is expected...but when they close shortcut it still keeps the connection...any reason why??? Thanks again for all your help...
0
_Commented:
Most likely because closing the icon doesn't do a Log Off.

This isn't really my area of knowledge, but there should be some place to set an "If Idle X-minutes, log it off".  Maybe in the GPO?

Might be able to do it with a script or PowerShell.  That would be for someone else to help you with.
0
Andrew DavisManagerCommented:
It depends how your shortcut is getting them access to the share.

Basically when they are clicking the shortcut they are initiating a logon to the share, then just closing all the connections does not log them off. The logon will be kept by design.

have a look at http://www.howtogeek.com/howto/16196/how-to-disconnect-non-mapped-unc-path-drives-in-windows/
for a good explanation of how to see what is connected and then disconnect.

Can you not move the data to the existing 2008 r2 server?
This would fix the problem, and be compliant with any and all licences.

Cheers
Andrew
0
_Commented:
Just out of curiosity, I went poking around, and found this. I'm not sure how much help it is in your case, though.

/persistent:{yes | no} = Use this option to control the persistence of connections created with the net use command. Choose yes to automatically restore created connections at the next logon or choose no to limit the life of this connection to this session. You can shorten this switch to /p if you like.
http://pcsupport.about.com/od/commandlinereference/p/net-use-command.htm

Maybe a quick-n-dirty .BAT file would do it:

ex:
net use K: \\nas1\volume_1
net use K: /delete


Been a long time since I used  BAT files, so there might need to be something else in between those commands to get it to work correctly.
0
cantorisCommented:
If you're not using a mapped drive, just a UNC path in a shortcut then once you click it and authenticate, you will continue to consume a licence for a while after you've finished.  You can though disconnect from a UNC path like this:

net use \\server\share /d

You could always have that as a one line batch file and encourage users to run it after they've disconnected from the share and closed docs.  If they still have files open they'll get a prompt about forcing the disconnect.  A bit of a messy solution though.
0
westhelpdeskAuthor Commented:
thanks for everyones input...is there a way through mapped drive or shortcut that will let me disconnect there session after a specific amount of time???

cantoris that would work but our users will never click that...they doe the opposite so you have to just force things or make them happen..thanks again for everyones help...
0
_Commented:
Power Shell would probably be your best bet.
Unfortunately, I don't know PS.
This should get you started, and have some links.
http://technet.microsoft.com/en-us/library/bb978526.aspx

For a .BAT file, we used to use FOR - NEXT (or nested F - N's) as a timer, But the systems are so much faster now, I have no idea what kind of numbers you would need to use.

I looked at Task Scheduler, but it looks like a pita to set up, if it works at all.

Hopefully somebody else can take you through the next step. If not, it looks like both of us will learn something over the Holiday.   ; )
0
cantorisCommented:
Try this group policy setting on the server:
http://technet.microsoft.com/en-us/library/jj852253.aspx
Try enabling this policy setting and specifying a value like perhaps 5 minutes and see if it works for you.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andrew DavisManagerCommented:
you can use a simple bat file like:-

net use x:\ \\server\share
timeout 300
net use x: /delete

Open in new window


The "Timeout" command just counts down x seconds before continuing.

This is ugly, for so many reasons, not least of which, the user could simply close the script.

Personally i would be looking at ways to move the data share to a more suitable location. But as you have indicated this is not what you want/can do, the script above will suffice.

Cheers
Andrew
0
_Commented:
>> ...Timeout command...

Sweet!  I could have used that back when.   Thanks.    : )
0
westhelpdeskAuthor Commented:
Hey cantoris,

do you know if setting this policy and it timeouts users with this actually close the document and what is not saved is lost or will this just log off user from domain..thanks for any help..
0
cantorisCommented:
I've never used it before but I would imagine that it only disconnects idle connections with no document opened off the drive. Actually, having said that it does use the phrase "Suspend session" rather than disconnect.  It would just then re-open the connection as required.  This setting is enabled by default (at 15 mins) so I don't see lowering it causing any adverse effects except causing more frequent slight delays as it reauthenticates to the server on resuming its connection.
0
westhelpdeskAuthor Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.