List Shares of a server on network

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to connect to a server on my network and list the Share, then go through the shares and list the 'open files' and 'sessions'. I would like to also be able to 'close' open files and 'sessions'. Does .NET include functions for any of this? I would authicate as Administrator on the remote server.
 
Hi Remmie,

I think what you are looking for is the WMI framework. Here is a link that
will get you started.

http://www.csharphelp.com/archives2/archive334.html

once you understand how to use it search msdn for the WMI reference, it will
show everything you can do with WMI. I also look here sometimes for simple
prebuilt scripts

http://www.microsoft.com/technet/community/scriptcenter/default.mspx


Remmie said:
I would like to connect to a server on my network and list the Share, then
go through the shares and list the 'open files' and 'sessions'. I would
like to also be able to 'close' open files and 'sessions'. Does .NET
include functions for any of this? I would authicate as Administrator on
the remote server.
 
Back
Top