We use DFS and DFS-R. Server 2008 R2. We have our files split between 2 file servers, roughly 4 TB on each one. They replicate to one partner each at our DR site.
To avoid the problems caused by a lack of distributed file locking in DFSR, we have all DFS targets on the DR side disabled so that users only get referrals from the production side.
But I believe that in a failover situation users just would not get a referral, if a file server on the production side went down, because I have all targets on the DR side disabled.
We have quite a few DFS targets. Maybe 25. Does anyone know of a script, or some other method, to automate changing the targets that are disabled to enabled, and the targets that are enabled to disabled?