Set preferred DFS server on either Client or Server

Hey all,

I am running 2 Windows 2008 servers called File1 and File2. Both servers are domain controllers of our childdomain called FILES. They host one domain-based DFS namespace with several targets. The contents of the tagets are replicated by DFS-R. DFS is running in 2k8 mode. Our network consists of only one site.

We have several deparments accessing the DFS namespace and they randomly get an active server assigned. I want to be able to set which computer gets which active server, instead of the random assignment. I would like each department to use the same preferred server. I was thinking of accomplishing this either server sided with something like a GPO or client sided by altering our login script.

It's impossible to use the built-in site mechanism, because all the departments are in the same VLAN/subnet and clients are in a different VLAN/subnet as server. Does anyone know how to accomplish this?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can't do this on a per department basis - it can only be done at a DFS Namespace level.

Under DFS Management, go to the Namespace Servers tab and under Advanced for the server that you want to be preferred, set it's Target Priority.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ArteespinaAuthor Commented:
I'm aware of that... but this isnt exactly what I am looking for as I would like to load balance between the two servers. When I right click a mapped DFS drive on the client, I can click on the DFS server and set is as preferred.. Isnt there a way to do that with the commandline? If so then I would be able to do that every boot using the login script.
ArteespinaAuthor Commented:
I now see that we can also do this on a per-Target basis instead of a per-Namespace basis. Using this I can almost accomplish the same and I will accept it as an answer. Thanks jakethecatuk.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.