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

x
?
Solved

Open sessions

Posted on 2011-03-15
6
Medium Priority
?
919 Views
Last Modified: 2012-05-11
Hi everyone,

I am having some problems with my sessions of my shared folders of my server.
I am running SBS 2003 and none of the sessions to my server terminate.

I have 0 open files, but still the sessions continues and when I login on my server I get the message that there are more sessions than CALs.
I can close the sessions, but this is manual and there has to be a reason why my server isn't closing them automaticaly.

Can a network share be the problem? I think that the client get their shares with an logon-script.

(I am just started with my internship so I don"t know much about the server, only that this is wrong..)

I hope you can help me!

Thanks in advance.
0
Comment
Question by:Silencer001
  • 4
  • 2
6 Comments
 
LVL 11

Expert Comment

by:Old User
ID: 35140885
When you are checking the sessions how many users are logged in? How many PCs are still on
0
 

Author Comment

by:Silencer001
ID: 35141089
When the error message is displayed it is in the morning, but I don't know weather or not the clients are still on. I have to check with my collegue..

But during the day when I close the sessions with 0 files open and some time idle, the session return after some time..
0
 
LVL 11

Expert Comment

by:Old User
ID: 35141119
These are most likely PCs that are still on, users do not have to have open files to have an active session
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:Silencer001
ID: 35141132
Agreed because they don't have any open files.. But I thought that windows closes the connection after an idle-time of 15 minutes?!
0
 

Accepted Solution

by:
Silencer001 earned 0 total points
ID: 36408308
I used a script on the server to remove open sessions every hour which were not having any open files.
Set dResources = CreateObject("Scripting.Dictionary")
Set oConnection = GetObject("WinNT://DT_A2O_XW6200_1/LanmanServer")

Set cResources = oConnection.Resources
For Each oResource in cResources
    If Not dResources.Exists(LCase(oResource.User)) Then dResources.Add LCase(oResource.User), 1
Next
Set cResources = Nothing


Set cSessions = oConnection.Sessions
For Each oSession in cSessions
    If Not dResources.Exists(LCase(oSession.User)) Then _
        cSessions.Remove(oSession.Name)
Next
Set cSessions = Nothing

Set oConnection = Nothing
Set dResources = Nothing

Open in new window

0
 

Author Closing Comment

by:Silencer001
ID: 36439920
Found solution myself
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've often see, or have been asked, the question about the difference between the Exchange 2010 SP1 version, available as part of Small Business Server (SBS) 2011, and the “normal” Exchange 2010 SP1 Standard. The answer to the question is relativ…
Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question