I have a problem with a server with one of my customers, The sessions of the shared folders always stays open. I can terminate the open sessions with the following script, but I only want to kill the sessions which have no open files.
How should you modify the following script that it only terminates the connections with no open files?
The server is a windows small business server 2003.
Thanks in advance!
Set objConnection = GetObject("WinNT://sbsserver/LanmanServer")
Set colSessions = objConnection.Sessions
For Each objSession in colSessions