Solved

Open sessions

Posted on 2011-03-15
6
910 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

The articles for turning off the Client firewall policy on the internet are for SBS 2008 and don't really help for SBS 2011. They actually moved the Client firewall policy. In 2011, the client firewall policy has moved to the SBS computers conta…
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 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