Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


enumerate location of dfs?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3000
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> enumerate location of dfs?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 enumerate location of dfs? - 5/15/2005 11:47:54 AM   
  antun

 

Posts: 9
Score: 0
Joined: 4/20/2005
From:
Status: offline
hey,

is there a way to enumerate which location the DFS is using?

normally in windows XP you can put in the dfs lecation which is

\\locaion\share
once at that location you can right click a folder, click on DFS tab and it will tell you which server it is using

\\servername

so how would i do this with a script?

Thanks?
 
 
Post #: 1
 
 Re: enumerate location of dfs? - 5/15/2005 9:23:00 PM   
  crazymatt

 

Posts: 296
Score: 0
Joined: 3/4/2005
From:
Status: offline
Im not sure this is what you are refering to, but it might get you started.

http://www.microsoft.com/technet/scriptcenter/scripts/storage/dfs/stdfvb03.mspx

Hope it helps.
/Matt

(in reply to antun)
 
 
Post #: 2
 
 Re: enumerate location of dfs? - 5/16/2005 11:59:33 AM   
  antun

 

Posts: 9
Score: 0
Joined: 4/20/2005
From:
Status: offline
Ok

DFS is a distributed file system
what that is if you have 2 servers, you can replicate data to both servers and only use 1 location

so if you have \\domain\share
this will point to \\server1\share or \\server2\share so you will get the same data anyways

so what i want to know is if you do use \\domain\share which server would it be pointing to? server1, or server2?

i explained above how you can do it manualy, but i want to be able to do it with a script

Thanks

(in reply to antun)
 
 
Post #: 3
 
 Re: enumerate location of dfs? - 5/16/2005 12:30:12 PM   
  antun

 

Posts: 9
Score: 0
Joined: 4/20/2005
From:
Status: offline
no that bit of script i couldnt get it to work

(in reply to antun)
 
 
Post #: 4
 
 Re: enumerate location of dfs? - 5/16/2005 3:15:50 PM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
I don't believe you (I could be wrong of course) can determine which server it will actually use using scripts. By default, it will use the server with the lowest cost according to the site and subnet information from AD. Most of the time, it will use the same one (lowest cost) unless it couldn't be reached for some reason.

(in reply to antun)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> enumerate location of dfs? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts