|
|
Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Hi *
I already posted this in the VBScript section and was advised to look for help here.
I'm having a strange problem:
I want to enumerate all my DFS Links. I have 3 DFS roots (root1,root2,root3) on 4 Domaincontrollers (DC1..DC4) in 2 sites. Root1 and root2 are between 20 and 40 links, root3 is about 600 - 700 links.
It was very simple to find the WMI win32_dfs_node, and win32_dfsTarget Objects in WMI. But the results are strange:
First: This ist the Script I'm using:
Set objWMIService = GetObject("winmgmts:\\" & strDomainControllerX & "\root\cimv2")
Set colDfsTargets = objWMIService.ExecQuery _ ("Select * from Win32_DFSTarget ")
For each objDfsTarget in colDfsTargets wscript.echo..... next
This should list all my DFS links - should!
The results depend on the machine, that runs the scripts and the host that is referenced in the script.
Script runs on client: DC1 returns the Links root1, root2 DC2 returns the Links root1 DC3 returns the Links root2 DC4 returns no Links
Script runs on DC1: DC1 returns the Links root1, root2, root3 DC2 returns the Links root1, root2 DC3 returns the Links root1 DC4 returns no Links .....
This does not mean, that every DC shows all Links , when the script runs locally. I might have a WMI Problem ( a different one on 4 identical DC's? (2003 R2)).
massimo thought about an replication problem but I am not so shure about that. I can see all my DFS Links on every DC. My DFS Roots are organised like:
\\DC1\d$\DFS\ root1 root2 root3
on every DC. And i get different results if I ask one DC via a locally run script to a script run on a client. Shure, there might be a problem with the replication, that i can not see ( how can i make shure that my replication is working properly? ), but why, can one DC give me full output when i run the script locally, and suppresses one complete dfs root whe I run the script from a client or a different 2003 or 2000 Server?
I feel like a complete moron with these results. I can't even belive them myself
Venkman
|
|
|