This project has moved and is read-only. For the latest updates, please go here.

Fix subdomain in Add-SPProfileSyncConnection

Jul 27, 2011 at 11:43 AM

instead of #$ConnectionSyncOU = "DC=$Domain,DC=$TLD"

must use
$ConnectionSyncOU = "DC="+$env:USERDNSDOMAIN -replace "\.",",DC="

Jul 27, 2011 at 2:54 PM

I just ran into this problem yesterday myself (had previously only tested on environment without subdomain). Brilliant fix, thanks!