Hi,
I made a powershell script that creates dfsnode and enables replication. It sets almost everything OK.
But after running this script I see that publication Status is still 'Not Published'
([wmiclass]'win32_dfsnode').create($path,"\\$server1",'iissharedconfig$') | Out-Null Invoke-Expression "dfscmd /add $path \\$($server2)\iissharedconfig`$" Invoke-Expression "dfsradmin RG New /rgname:$($path) /rgdesc:'SimpleWebFarm'" Invoke-Expression "dfsradmin RG Set Schedule full /RGName:$($path)" Invoke-Expression "dfsradmin member new /rgname:$($path) /memname:$($server1)" Invoke-Expression "dfsradmin member new /rgname:$($path) /memname:$($server2)" $list = @($server1,$server2) for ($i = 0; $i -lt $list.length; $i++){ for($j = $i+1; $j -lt $list.length; $j++){ Invoke-Expression "dfsradmin conn new /rgname:$($path) /SendMem:$($list[$i]) /RecvMem:$($list[$j]) /ConnEnabled:true /ConnKeywords:'From_$($list[$i])_to_$($list[$j])'" Invoke-Expression "dfsradmin conn new /rgname:$($path) /SendMem:$($list[$j]) /RecvMem:$($list[$i]) /ConnEnabled:true /ConnKeywords:'From_$($list[$j])_to_$($list[$i])'" } } Invoke-Expression "dfsradmin RF New /rgName:$($path) /RfName:$(Split-Path $path -Leaf)" Invoke-Expression "dfsradmin Membership Set /RgName:$($path) /RfName:$(Split-Path $path -Leaf) /MemName:$($server1) /Localpath:'$($Drive):\IIS\webserver\sharedconfig' /MembershipEnabled:true /StagingSize:1000 /CDSize:350 /IsPrimary:true" Invoke-Expression "dfsradmin Membership Set /RgName:$($path) /RfName:$(Split-Path $path -Leaf) /MemName:$($server2) /LocalPath:$($Drive):\IIS\webserver\sharedconfig /MembershipEnabled:true /StagingSize:1000 /CDSize:350 /IsPrimary:false"
Where can be the problem?
I'm running w2k8r2