List Shares of a server on network

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.
 
F

Frank Wisniewski [MCSE 4.0, A+]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top