About Me

Having 12 years experience in Microsoft technologies.Since more than 7 years working in SharePoint technologies. Expert in providing consultation for SharePoint projects. Hands on with development and administration.
Showing posts with label SharePoint 2010. Show all posts
Showing posts with label SharePoint 2010. Show all posts

Tuesday, 3 February 2015

Update SharePoint 2010/2013 - Claims to Windows token - service identity(account) using PowerShell Commands

Sometimes it is required to update/modify identity (account) for services in SharePoint 2010/2013.
In this article, I will show you - how to update the identity of 'Claims to Windows token service' using PowerShell
Note:
1. Replace <Account Name> with your own account (identity)
2. Replace "Claims to Windows Token Service" with your own service name
3. Run the script in windows PowerShell console
----------------------------------------------------------------------------------------------------------------------------------
#SharePoint PowerShell SnapIn Required
Add-PSSnapin Microsoft.SharePoint.PowerShell
 
[string] $Identity = "<Account Name>"
[string] $ServiceTypeName = "Claims to Windows Token Service"
 
#Get Reference to Service
$Service = (Get-SPFarm).services | where {$_.typename -eq $ServiceTypeName}
 
#Get Reference to Managed Account
$IdentityManagedAcct = Get-SPManagedAccount -Identity $Identity
 
#Get Reference to Process Identity and Update Identity
$SvcProcessIdentity = $Service.ProcessIdentity
$SvcProcessIdentity.CurrentIdentityType = [Microsoft.SharePoint.Administration.IdentityType]::SpecificUser
$SvcProcessIdentity.Username = $IdentityManagedAcct.UserName
$SvcProcessIdentity.Update()
$SvcProcessIdentity.Deploy()
--------------------------------------------------------------------------------------------------------------------------------
Tip1: Following command let to view all services in the farm
Get-SPServiceInstance
Tip2: Confirm your Id by running the following cmdlet
Get-SPServiceInstance -identity <Paste the Id>
Another way of doing the same job from Central Administration
CA--> Security--> Configure Service Accounts
 
Select the service, which you want to update
 
 
 
Update the account and click ‘OK’
 
 
Cheers!
Vamsi
 
 

Friday, 21 November 2014

SharePoint 2010 Audience - Adding Active Directrory Security Group


Sometimes few AD security groups will not be appeared when adding to Audience. However, we can find same security groups when you add to site collections or some other places.

Reason: Sometimes SharePoint admins might have not configured user profile connection to import all kinds of groups as part of profile synchronization. In that case we should manually import respective groups. Here are the steps

 
1.Browse CAàManage Service Applications-à Find respective user profile service


 
2. Click on – Configure Synchronization Connections


 
3. Context menu and choose Edit


 
4. Enter password and click Populate Containers (will take some time to populate data)

 

 


 
5. Choose your respective Organizational Unit (again it will take some time to load)


6. Choose Groups


 
7. Find your respective Security Group and include


 
8. And hit OK, will take some time to process your request


9. Then go back to user profile service-à Start Profile Synchronizationà Start Incremental Synchronization

Note: No need of full import, if the group contains already existing users. If users are newly added, then we need full import.

 



 
10. Wait till synchronization completes…
11. Go to Manage Audiences

13. New Audience
14.Add Name and Owner & choose ‘Satisfy all of the rules’  and click OK

15. Choose operator as Member Of1
16. Add  respective AD security group and hit Ok 





17. Hit Compile audience….
 

 

That’s it….. your SharePoint audience group has been successfully creates. So we can use where ever we have provision to use….
Cheers!
Vamsi