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.

Monday, 13 May 2013

Difference between Local vs Global Termsets for Managed Meta Data Service in SP 2010

There is a quite difference between Local vs Global Termsets for Managed Meta Data Service in SP 2010.

global term sets
    When you create a term set from the MMS management interface via Central Administration (CA) it is available to all site collections living in Web applications that are connected via a service application proxy to the MMS instance. We refer to these as global term sets because they are available to all sites & site collections that are connected to the MMS
local term sets
    These are different in that they are scoped locally to a specific site collection and can only be used by that site collection, not by other site collections.Local term sets come in handy when site collection owners want to create their own term sets without having to work with librarians. These can be managed from a link in the site collection's Site Settings page or when you modify a column.

Note: There are disadvantages when you use local tem sets, when it comes to portability & DR (back/restore) senarios these term sets are not friendly.

 

Tuesday, 9 April 2013

Provision SP 2010 - Managed Meta Data service PowerShell Script

Following powershell script will provision Managed Metadata service.

Points to be noted:

1. Update $UserProfileServiceAccount with the account with respect to your environment.

2. Save the follwing script on some meaningful name like psProvisionManagedMetaData.ps1

3. Call the file using bacth file & it contains follwoing and save as ProvisionManagedMetaData.bat

cd /d %~dp0
powershell -noexit -file ".\psProvisionManagedMetaData.ps1" "%CD%"
pause
 
4. $CTypeHubUrl is optional, later you can set it up.
 
 
Add-PSSnapin Microsoft.SharePoint.Powershell -EA 0
$ManagedMetadataServiceName ="ManagedMetaDataAppPool"
$ManagedMetaDataServiceAccount = "xxxxxxx"
$CTypeHubUrl = ""
$saAppPoolName = New-SPServiceApplicationPool -Name $ManagedMetadataServiceName -Account $ManagedMetaDataServiceAccount
write-host "App pool has been created successfully"
# create new managed meta data service application
$MetadataServiceApp = "Managed Meta Data Service"
New-SPMetadataServiceApplication -Name $MetadataServiceApp -ApplicationPool $saAppPoolName -DatabaseName "SPP_ManagedMetaData_DB"
write-host "Managed meta data service has been successfully created!"
Write-Host "Creating $MetadataServiceApp Application & Proxy..."
$MetadataServiceAppProxy = "Managed Meta Data Service Proxy"
New-SPMetadataServiceApplicationProxy -Name $MetadataServiceAppProxy -ServiceApplication $MetadataServiceApp
Write-Host $MetadataServiceAppProxy "has been successfully provisioned"
write-host "Done!!!!"
Remove-PSSnapin Microsoft.SharePoint.Powershell -EA 0