I get this same error on the Social and Profile databases wherein the application pool account SP_PortalAppPool could not be added to the shell admin role on those databases. I'm using:
-v 3.96 of the script
-Windows 2012
-SQL 2012
-SharePoint Enterprise 2013
-Individual accounts for
SP_Admin
SP_Farm
SP_Services
SP_PortalAppPool
SP_ProfilesAppPool
SP_SearchService
SP_CacheSuperUser
SP_CacheSuperReader
SP_ProfileSync
SP_SearchContent
Error messages are:
-v 3.96 of the script
-Windows 2012
-SQL 2012
-SharePoint Enterprise 2013
-Individual accounts for
SP_Admin
SP_Farm
SP_Services
SP_PortalAppPool
SP_ProfilesAppPool
SP_SearchService
SP_CacheSuperUser
SP_CacheSuperReader
SP_ProfileSync
SP_SearchContent
Error messages are:
-
Granting CORP\SP_PortalAppPool rights to SP2013_Profile...
Add-SPShellAdmin :
"Cannot add CORP\SP_PortalAppPool to the SharePoint_Shell_Access role of the database SP2013_Profile. A possible
cause of this error is that the account name was already added to the database as a login using a different user name
than the account name."
At \192.168.1.100\f$\Software\SharePoint\SP2013\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:2996
char:67 - Get-SPDatabase | ? {$_.Name -eq $profileDB} | Add-SPShellAdm ...
-
~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (Microsoft.Share...AddSPShellAdmin:SPCmdletAddSPShellAdmin) [Add-SPShellAdm
in], ArgumentException -
FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletAddSPShellAdmin
- CategoryInfo : InvalidData: (Microsoft.Share...AddSPShellAdmin:SPCmdletAddSPShellAdmin) [Add-SPShellAdm
-
Granting CORP\SP_PortalAppPool rights to SP2013_Social...
Add-SPShellAdmin :
"Cannot add CORP\SP_PortalAppPool to the SharePoint_Shell_Access role of the database SP2013_Social. A possible
cause of this error is that the account name was already added to the database as a login using a different user name
than the account name."
At \192.168.1.100\f$\Software\SharePoint\SP2013\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:2998
char:66 - Get-SPDatabase | ? {$_.Name -eq $socialDB} | Add-SPShellAdmi ...
-
~~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (Microsoft.Share...AddSPShellAdmin:SPCmdletAddSPShellAdmin) [Add-SPShellAdm
in], ArgumentException -
FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletAddSPShellAdmin
- CategoryInfo : InvalidData: (Microsoft.Share...AddSPShellAdmin:SPCmdletAddSPShellAdmin) [Add-SPShellAdm