Oct 31, 2011 at 5:58 PM
Edited Oct 31, 2011 at 5:59 PM
I just got an error from the script-
It was attempting to provision a sync connector, even though the xml config file said not to...
Note the config items, highlighted in red below:
Name="User Profile Service Application"
ProxyName="User Profile Service Application"
CreateDefaultSyncConnection is set to false.
However when the script ran, it threw an error while trying to create a sync connection.
This looks to be from line 1996 in version AutoSPInstallerFunction.ps1
There is no version number at the top of the file, so the line could have been moved, here is the section:
# Attempt to create a sync connection only on a successful, newly-provisioned User Profile Sync service
# We don't have the ability to check for existing connections and we don't want to overwrite/duplicate any existing sync connections
# Note that this isn't really supported anyhow, and that only SharePoint 2010 Service Pack 1 and above includes the Add-SPProfileSyncConnection cmdlet
If (CheckForSP1 -and
($($UserProfile.CreateDefaultSyncConnection) -eq $true) -and ($NewlyProvisionedSync -eq $true))
Write-Host -ForegroundColor White " - Creating a default Profile Sync connection..."
Is there an error in the if statement? I am guessing that this should never have run.
Is it possible that it didn't read it as $false ?