Solved

Open sessions

Posted on 2011-03-15
6
908 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Because virtualization becomes more and more common, and, with Microsoft Hyper-V included in Windows Server at no additional costs, and, most server hardware nowadays is more than capable of running a physical Small Business Server (SBS) 2008 or 201…
If you are a user of the discontinued Microsoft Office Accounting 2008 (MSOA) and have to move to a new computer running Windows 8, you will be unhappy to discover that it won't install.  In particular, Microsoft SQL Server 2005 Express Edition (SSE…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

810 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