Willy is right, unfortunately. I have exactly this problem.
I need to make a list of shared folders for each particular computer in
a domain. But I have to be logged on as a ordinary user. Then every time
I get "Acces denied".
What other means could I use to make the described list?
(using C# classes, not API) Is it possible through Active directory?
Thx in advance
stej
Nicholas, Rohan
Just a small remark, like Nicholas has said WMI is the way to go,
however there's a little issue which is security related.
Using windows, whenever you want to access remote resources, you need to
have access rights to the computers exposing these
resources.
The same applies to WMI, when you need to query remote WMI services,
you'll need to have appropriate access rights to do so. Per
default the WMI service is only accessible from the local system, so you
will need to give explicit remote access rights for a
specific user on every system you want to query through WMI.
Willy.