Hi,
I have a PC with windows XP pro and a shared folder for a small office, but frequently I get a message "... there are no more connections available ..." when more than 10 people try to access this folder, but I have detected there are some connectios idle for more than 30 minutes without file opened, How can I check every 15 minutes for idle connections and cancel them using Macro Scheduler?
Thanks,
Salvador
How to cancel windows XP idle connections?
Moderators: Dorian (MJT support), JRL
How to cancel windows XP idle connections?
Thanks,
Salvador Hernandez
Salvador Hernandez
I really like this post. This is a great use for Macro.
To strictly use Macro and no Vbscripting you will need to mimic a user by navigating thru screens, export the the sessions log and then grab your information from the log. I cannot think of a way to call the information without going to sessions in management console or utilizing Vbscript. vb scripting will use LanmanServer.
C:\%SystemRoot%\system32\compmgmt.msc
If you need specific help post back.
P.S. - look out for idle users they may have an unsaved document open and logging off the session would result in lost work.
To strictly use Macro and no Vbscripting you will need to mimic a user by navigating thru screens, export the the sessions log and then grab your information from the log. I cannot think of a way to call the information without going to sessions in management console or utilizing Vbscript. vb scripting will use LanmanServer.
C:\%SystemRoot%\system32\compmgmt.msc
If you need specific help post back.
P.S. - look out for idle users they may have an unsaved document open and logging off the session would result in lost work.
How to cancel windows XP idle connections? with vbscripting
Hi,
Thanks for the information, I would like to do it with vbscript, so users that work in this server will not be interrupted with his work. How can I do it with VBscript?
Thanks,
shamigc
Thanks for the information, I would like to do it with vbscript, so users that work in this server will not be interrupted with his work. How can I do it with VBscript?
Thanks,
shamigc
Thanks,
Salvador Hernandez
Salvador Hernandez
if you use in cmd
net session
you can see the users connected and how long they are idle.
if you make a batch like
net session > idle.txt
you can use MS to read this txt and you can use
net session \\computername /delete to disconnect the session.
Looks to me that this can be perfect be done bij MS,
hth,
Djek
net session
you can see the users connected and how long they are idle.
if you make a batch like
net session > idle.txt
you can use MS to read this txt and you can use
net session \\computername /delete to disconnect the session.
Looks to me that this can be perfect be done bij MS,
hth,
Djek
edautier:
Thanks for your net config server /autodisconnect:time command, unfortunatelly it did not worked on my XP Pro computer.
Djek:
Thanks for your "net session \\computername /delete" command it worked all right, and I want to ask you if there is another msdos command to have the "Open Files" output, because I have detected "net session" command says some users have opened files, but when I verify which files are opened, Computer Management> Open Files, there are no opened files.
Thanks to you two,
Salvador Hernandez
Thanks for your net config server /autodisconnect:time command, unfortunatelly it did not worked on my XP Pro computer.
Djek:
Thanks for your "net session \\computername /delete" command it worked all right, and I want to ask you if there is another msdos command to have the "Open Files" output, because I have detected "net session" command says some users have opened files, but when I verify which files are opened, Computer Management> Open Files, there are no opened files.
Thanks to you two,
Salvador Hernandez