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

New Post: User Profile Sync Application Service Issue

$
0
0
Actually i moved a little further....

So, when running all of this stuff remote (for example 3 SharePoint servers 001WFE,002APP,003APP). I start the main script by running from 001WFE and then after the remote calls are made from 001WFE to 002APP and 003APP using PSexec the pre-reqs run and the SP installer runs (all still showing on 001WFE). Then it tries to do a remote restart, which fails. It then asks to force and that fails. So i manually have to reboot the 002APP and 003APP servers. Once they show back online I then log in to those machines using the SP Installation account. I see that the scripts then kick off on each of those servers automatically! Very nice! But my next problem.....

On 003APP is where i'm trying to get the User Profile Service to run and it keeps failing....

The file that is in error has the following code - i'm not sure the format on line 3 is correct, should parameters be in "" like the value of -ProfileDBServer, etc? Should it say System.Collections.Hashtable at the end of the line? Doesn't seem right.
New-SPProfileServiceApplication : A positional parameter cannot be found that accepts argument
'System.Collections.Hashtable'.
At C:\Users\SPINSTALL_D\AppData\Local\Temp\2\AutoSPInstaller-ScriptBlock.ps1:3 char:25
+ $newProfileServiceApp = New-SPProfileServiceApplication -Name "User Profile Serv ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [New-SPProfileServiceApplication], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Office.Server.UserProfiles.PowerShell.SPCmdletNewP
   rofileServiceApplication

C:\Users\SPINSTALL_D\AppData\Local\Temp\2\AutoSPInstaller-ScriptBlock.ps1 :  - Failed to create User Profile Service
Application
At line:1 char:1
+ C:\Users\SPINSTALL_D\AppData\Local\Temp\2\AutoSPInstaller-ScriptBlock.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,AutoSPInstaller-ScriptBlock.ps1
Write-Host -ForegroundColor White "Creating User Profile Service Application as DOMAIN\SPFARM_D..."
Add-PsSnapin Microsoft.SharePoint.PowerShell
$newProfileServiceApp = New-SPProfileServiceApplication -Name "User Profile Service Application" -ApplicationPool "SharePoint Hosted Services" -ProfileDBServer DBSQL2012DEV -ProfileDBName SP2013_Profile -ProfileSyncDBServer DBSQL2012DEV -ProfileSyncDBName SP2013_Sync -SocialDBServer DBSQL2012DEV -SocialDBName SP2013_Social -MySiteHostLocation http://mysites-dev.domain.com:80 System.Collections.Hashtable
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 "SP2013_Profile"}
Add-SPShellAdmin -UserName "DOMAIN\SPINSTALL_D" -database $profileDBId
$socialDBId = Get-SPDatabase | ? {$_.Name -eq "SP2013_Social"}
Add-SPShellAdmin -UserName "DOMAIN\SPINSTALL_D" -database $socialDBId
As of now i'm stuck on creating the User Profile Service. Any help would be really appreciated!

Thanks,
Greg

Viewing all articles
Browse latest Browse all 2279

Trending Articles



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