How do I configure DFS replication using the command line?

Posted by zneak on Server Fault See other posts from Server Fault or by zneak
Published on 2010-05-14T21:36:04Z Indexed on 2010/05/14 21:44 UTC
Read the original article Hit count: 270

Hello everyone,

I'm in the process of making a script to automate DFS creation and replication for an exam I have next week.

So, assuming I have a namespace:

dfsutil root adddom \\Foo\bar 'My namespace'

And I have a link:

dfsutil link add \\Foo\Bar\CoolStuff \\Server2\CoolStuff 'Neat stuff'

How can I use the command line to replicate \\Server2\CoolStuff over, say, \\Server3\CoolStuff? When I use dfscmd:

dfscmd /add \\Foo\Bar\CoolStuff \\Server3\CoolStuff

It says it ended correctly, but opening up the MMC shows that there are no replication groups for CoolStuff.

Thanks!

© Server Fault or respective owner

Related posts about dfs

Related posts about replication