Given a dfs linkname, I need to get the name of the sharre it points to. I
need to do this on a server which is not a DC. Do I need to query Active
Directory to do this? Can someone tell me how to do this, or post some
sample code? I need to run this from a vbs script.

Thanks very much.
--
Gregg Diskin

RE: Obtain share from dfs link by v-wywang

v-wywang
Fri Dec 07 00:23:25 PST 2007

Hello Gregg,

I'm not sure I understood your issue complete. Would you please clarify the
following information for me?
1st: What do you mean by "DFS"? Is it Distributed File System?
2nd: Would you please provide some detailed information about "dfs
linkname"?
3rd: What do you mean by "name of the sharre it points to"?

If we are talking about Distributed File System, as far as I know, related
information is stored in Active Directory.
To query AD, (in order to solve this issue more quickly) I suggest you may
consider posting this issue to Active Directory Service Interface (ADSI)
newsgroup "microsoft.public.adsi.general" (It's also a Managed Newsgroup).
To special ADSI Development issue, the people in those groups will be more
likely to be able to help and familiar in such field.

Hope this helps.
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


RE: Obtain share from dfs link by gregg

gregg
Fri Dec 07 07:09:01 PST 2007

Yes, I meant Distributed File System.
We want to call subinacl from a script to change the owner of a file. An
example might be:
subinacl /file \\machine.name\Users17dev$\atipp /setowner=windev\atipp

The information available to the script, though, is the link:
\\root.name\dfs\users\users17\atipp but subinacl seems to require the name
of the share.

So we need to convert the link to a share before calling subinacl.

Thanks for your advice about posting to ADSI. I'll try that too.


--
Gregg Diskin



"WenYuan Wang [MSFT]" wrote:

> Hello Gregg,
>
> I'm not sure I understood your issue complete. Would you please clarify the
> following information for me?
> 1st: What do you mean by "DFS"? Is it Distributed File System?
> 2nd: Would you please provide some detailed information about "dfs
> linkname"?
> 3rd: What do you mean by "name of the sharre it points to"?
>
> If we are talking about Distributed File System, as far as I know, related
> information is stored in Active Directory.
> To query AD, (in order to solve this issue more quickly) I suggest you may
> consider posting this issue to Active Directory Service Interface (ADSI)
> newsgroup "microsoft.public.adsi.general" (It's also a Managed Newsgroup).
> To special ADSI Development issue, the people in those groups will be more
> likely to be able to help and familiar in such field.
>
> Hope this helps.
> Best regards,
>
> Wen Yuan
> Microsoft Online Community Support
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>

RE: Obtain share from dfs link by v-wywang

v-wywang
Mon Dec 10 03:54:48 PST 2007

Hello Gregg,
Thanks for your reply.

I searched on internet, and noticed we can enumerate DFSNodes/DFSTarget via
WMI.
Have you tied with it?
http://www.activexperts.com/activmonitor/windowsmanagement/scripts/storage/d
fs/
[Scripting DFS Storage using VBScript]

Hope this helps. Please feel free to update here again, if you face any
further issue.
We are glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.