Getting DFS information from vbscript 
Author Message
 Getting DFS information from vbscript

Hi,

Is anyone able to tell me how to obtain a list of referred servers for a
specified Dfs link, from within an automated VBScript. I've exhausted all
aveneues. I know the Dfsutil and dfscmd commands could be shelled at the
last resort, but I'd really rather avoid that. The API call (NetDfsGetInfo)
could be used, but this can't be called from vbs (can it?).

Any help would be very, very much appreciated!

Thanks in advance,

Dave Pyke,
London, UK.



Wed, 02 Feb 2005 18:27:51 GMT  
 Getting DFS information from vbscript

Quote:

> Is anyone able to tell me how to obtain a list of referred servers for a
> specified Dfs link, from within an automated VBscript. I've exhausted all
> aveneues. I know the Dfsutil and dfscmd commands could be shelled at the
> last resort, but I'd really rather avoid that.

In .Net servers there is introduced a DFS WMI provider that may be able to do
this:
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/dfs_provider.asp

Quote:
> The API call (NetDfsGetInfo)
> could be used, but this can't be called from vbs (can it?).

No, vbs can't call API's. Well, there exists some third party API wrappers, but
I would have parsed the output fom Dfsutil and dfscmd ;-)

--
torgeir



Fri, 04 Feb 2005 05:09:17 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem with getting folder names from Network DFS

2. VBScript -- Getting WinNT Domain account information

3. Getting file summary information via vbscript?

4. Getting driver file version information via vbscript or VB

5. Getting driver file version information via vbscript or VB

6. Getting driver file version information via vbscript or VB

7. Install DFS via VBScript?

8. Getting Width Information from a Postscript font

9. Getting hardware information from computers around the office?

10. Getting information from Webpage

11. Getting/using client information in WEB page

12. Getting User Information from Active Directory via ASP/LDAP Provider

 

 
Powered by phpBB® Forum Software