Script to set Active Target on DFS clients
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Script to set Active Target on DFS clients

 
Post new topic   Reply to topic    Windows Server Forum Index -> DFS and FRS
Author Message
Helen
Guest





Posted: Wed Oct 05, 2005 8:51 pm    Post subject: Script to set Active Target on DFS clients Reply with quote

Hi,

We have Windows 2003 servers (SP1 is only on the domain controllers) and
have domain based DFS. It will take a while before we have SP1 on our DFS
clients, so I do not have the capability of using Target Priority.

I'd like to write a VB script to set the Active Target on the DFS clients
after a server reboot. This will allow me to automate server reboots on a
monthly basis.

Is there a WMI class I can use to set the active property on the DFS clients
? I found WIN32_DFSTarget but this seems to apply to the AD entry on the
domain controllers. There must be a table in memory on the clients that
contains the DFS information including which link is the Active link.

I tried running this script on the client :

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

It executes but doesn't display any targets. I suspect this will only work
on the domain controllers.

Can anyone offer me some insight ?

Thank you !

-helen
Back to top
Paul Williams [MVP]
Guest





Posted: Mon Oct 10, 2005 8:51 am    Post subject: Re: Script to set Active Target on DFS clients Reply with quote

I think that script will only work when run against a DFS root.

Why do you need SP1 on all machines? 2003 itself introduced better
site-based behaviour than 2000.
-- http://www.windowsitpro.com/Article/ArticleID/44327/44327.html?Ad=1


As long as the ISTG is running 2003, you can use the new cost-based targets.

--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net
Back to top
Helen
Guest





Posted: Tue Oct 11, 2005 8:50 pm    Post subject: Re: Script to set Active Target on DFS clients Reply with quote

Thanks for your response, Paul. We need all our servers to point to the same
active DFS. We are running PeopleSoft and the reports get posted to DFS and
replicated to redundant servers. If the DFS clients don't all point to the
same active DFS, then clients can receive an error message when opening a
report that was just created.

SP1 will solve this problem for us, but it may be awhile before we have it
installed. So, I'm looking for a short term solution. In the mean time, I
have been looking at writing something in C++ that will call the
NetDfsSetClientInfo API>

-helen

"Paul Williams [MVP]" wrote:

Quote:
I think that script will only work when run against a DFS root.

Why do you need SP1 on all machines? 2003 itself introduced better
site-based behaviour than 2000.
-- http://www.windowsitpro.com/Article/ArticleID/44327/44327.html?Ad=1


As long as the ISTG is running 2003, you can use the new cost-based targets.

--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net


Back to top
Paul Williams [MVP]
Guest





Posted: Sun Oct 23, 2005 4:50 pm    Post subject: Re: Script to set Active Target on DFS clients Reply with quote

I see. I'm sorry I can't be of more help. Post some info, or mail me,
about your requirements and reasons and I'll try and fire it over to the
product team if you like.

--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> DFS and FRS All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB