1
Vote

Function ConfigureFarm always does FullConfig

description

$FirstServer always receives $true and $SPFarm is NULL in Function CheckFarmTopology, because $ConfigDB is NULL
So even subsequent runs trigger a Full Configuration.
 
Resolution:
The scope of the variable $configDB should be "script" in Line 786 (Function CreateOrJoinFarm) >>
$script:ConfigDB = $DBPrefix+$xmlinput.Configuration.Farm.Database.ConfigDB

comments

brianlala wrote Dec 7, 2011 at 1:29 AM

Correct - I think I used to have it as a script-scoped variable then must have changed it when cleaning up the script sometime in the past few revisions. Instead of script-scoping it though I'll just re-assign it again in the CheckFarmTopology function.

Thanks for catching this!
Brian