Solved

Open sessions

Posted on 2011-03-15
6
905 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

27 Experts available now in Live!

Get 1:1 Help Now