Solved

Open sessions

Posted on 2011-03-15
6
907 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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

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

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Question has a verified solution.

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

My previous article  (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html)detailed one possible method to get SCCM 2007 installed an…
You may have discovered the 'Compatibility View Settings' workaround for making your SBS 2008 Remote Web Workplace 'connect to a computer' section stops 'working around' after a Windows 10 client upgrade.  That can be fixed so it 'works around' agai…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now