1.1 KiB
User Profile Service
Montag, 18. Juni 2018
11:10
Dies Skript funktioniert (adaptiert von AutoSPInstaller), die MySiteColletionLocation wurde entfernt.
Write-Host -ForegroundColor White "Creating User Profile Service Application as bkk-mobiloil\_sptadmin..."
Add-PsSnapin Microsoft.SharePoint.PowerShell
$newProfileServiceApp = New-SPProfileServiceApplication -Name "User Profile Service Application" -ApplicationPool "SharePoint Hosted Services" -ProfileDBServer SPT-ProfileService -ProfileDBName SPT_Profile -ProfileSyncDBServer SPT-ProfileService -ProfileSyncDBName SPT_Profile_Sync -SocialDBServer SPT-ProfileService -SocialDBName SPT_Profile_Service
If (-not $?) {Write-Error " - Failed to create User Profile Service Application"; Write-Host "Press any key to exit..."; $null = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")}
$profileDBId = Get-SPDatabase | ? {$_.Name -eq "SPT_Profile"}
Add-SPShellAdmin -UserName "BKK-MOBILOIL\_sptadmin" -database $profileDBId
$socialDBId = Get-SPDatabase | ? {$_.Name -eq "SPT_Profile_Service"}
Add-SPShellAdmin -UserName "BKK-MOBILOIL\_sptadmin" -database $socialDBId