Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

New Post: Error in granting rights to Profile and Social database (User Profile Service Application)

$
0
0
Found that there is a part of the script that launches with the farm account and creates the UPS. It is likely that this part of the script therefore creates those specific databases with the farm account as owner. To workaround this I simply ignored the errors for now and used these commands to add the required permissions:

Login as the setup account and launch a powershell window with elevated permissions and execute:
net localgroup administrators /add corp\sp_farm
This will add the farm account to the local administrators group. Then login as the farm account and execute these commands using an elevated PowerShell window:
Add-PSSnapin Microsoft.SharePoint.Powershell
Get-SPDatabase | ?{$_.Name -eq "SP2013_SecureStore"} | Add-SPShellAdmin –Username corp\sp_admin
Get-SPDatabase | ?{$_.Name -eq "SP2013_Profile"} | Add-SPShellAdmin –Username corp\sp_admin
Get-SPDatabase | ?{$_.Name -eq "SP2013_Sync"} | Add-SPShellAdmin –Username corp\sp_admin
Get-SPDatabase | ?{$_.Name -eq "SP2013_Social"} | Add-SPShellAdmin –Username corp\sp_admin
Make sure you replace the databases with your database names and the account with your setup account.

Again login with the setup account and execute this command to remove the farm account from the local admin group:
net localgroup administrators /delete corp\sp_farm
That's it, you're done!

Viewing all articles
Browse latest Browse all 2279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>