| Author |
Message |
Helen
Guest
|
Posted:
Wed Oct 05, 2005 8:51 pm Post subject:
Script to set Active Target on DFS clients |
|
|
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
|
|
| Back to top |
|
 |
Helen
Guest
|
Posted:
Tue Oct 11, 2005 8:50 pm Post subject:
Re: Script to set Active Target on DFS clients |
|
|
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:
|
|
| 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 |
|
|
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 |
|
 |
|
|
|
|