Sometimes we are unable to
start and stop the User Profile Synchronization Service from GUI, still there
is way using power shell
Using Get-SPServiceInstance
To get the list of all the
services "guid" with Power Shell command, but it is difficult to
identify the exact user profile service if we are using multiple user profile
services so best use to save the services in to a Text file.
Run the below command as
shown.
Get-SPServiceInstance >
Services.txt
It will writes the list of
all the services with name and "guid" in to the text file
To Start the User Profile Synchronization Service use the
following command
Start-SPServiceInstance
–Identity "Guid of Particular Service Application"
To Stop the User Profile Synchronization Service use the
following command
Stop-SPServiceInstance
–Identity "Guid of Particular Service Application"
SharePoint 2013 - User Profile Service Stuck on Starting
When it stuck on starting run the
following PowerShell command
Add-PSSnapin
Microsoft.SharePoint.Powershell
$TypeName = "User Profile Synchronization Service"
$ServerName = "SERVERNAME" #Replace with your server name where the service is stuck on Starting
$Serviceinstance = Get-SPServiceInstance | where-object {$_.TypeName -eq $TypeName -and $_.Server.Address -eq $ServerName}
$Serviceinstance.Unprovision()
$TypeName = "User Profile Synchronization Service"
$ServerName = "SERVERNAME" #Replace with your server name where the service is stuck on Starting
$Serviceinstance = Get-SPServiceInstance | where-object {$_.TypeName -eq $TypeName -and $_.Server.Address -eq $ServerName}
$Serviceinstance.Unprovision()
No comments:
Post a Comment