New-DFSRGroup This function contains pretty much everything about dfs-r groups. When you create a replication group from the GUI, have you ever noticed the steps that complete on the page after you click create? Ever paid any attention to what they are actually doing? Me neither, until I started looking at this new-dfsrgroup function. Assuming that there are 2 members to the replication group and all parameters have been entered, my function calls dfsradmin no less that 9 times to complete the task. So how can we use the function? here are some examples.... new-dfsrgroup -name "rg2" -description "desc1" -Servers server1,server2 -folderpath e:\data\users -foldername Users This command will invoke every part of the function and create a fully meshed replication group. Out of the parameters presented, only name and servers are mandatory. If you were to omit foldername eg : new-dfsrgroup -name "rg2" -description "desc1" -Se...
Powershell for Active Directory