From: Matthew Daly

Using Server Manager in NT, I can see which users are connected to a
certain share on a remote machine and disconnect one or more of them.  I'm
looking for a way to script that process, so that (to give one example) the
nightly Visual C++ build doesn't fail because a user left a copy of Studio
up overnight which keeps the .pdb files open (even though the users only
have read-only access).

Win32::NetResource seemed like an obvious candidate, but reading through
Dave Roth's book on Win32 extensions it seems like I can't get a user list
or disconnect anyone other than myself.  Am I missing something?  If not,
is there some command-line app or API call that manages shares that I can
exploit in a Perl script?

Thanks in advance.

-Matthew Daly
[EMAIL PROTECTED]

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to