top of page

Enable Enterprise keywords in SharePoint 2010 using powershell


Enterprise keywords are used to tag the documents when uploading the documents in the document library. Enterprise documents can be enabled in both SharePoint lists and libraries. Enterprise keywords - Terms are stored in a non-hierarchical way and available for users to key in which is known as folksonomy (free tagging). In this article we will be seeing how to enable Enterprise keywords for a list using powershell script.


  1. Managed metadata service application should be configured. 

  2. Web application should be associated to the Managed Metadata Service Application.

Enable Enterprise Keywords using powershell

To enable Enterprise keywords through UI refer

To enable enterprise keywords using powershell do the following steps:

  • Go to Start => All Programs => Microsoft SharePoint 2010 products => SharePoint 2010 Management Shell. 

  • Run as an administrator. 

  • Run the following script.

  1. $site = Get-SPSite "http://serverName:22222/sites/Test/"

  2. $web = $site.OpenWeb("BL")             

  3. $list = $web.Lists.TryGetList("dl");

  4. if ($list -ne $null)

  5. $field = $list.ParentWeb.AvailableFields["Enterprise Keywords"] 

  6. if ($list.Fields.ContainsField("Enterprise Keywords") -eq $false) 

  7. {   

  8. $list.Fields.Add($field)   

  9. $list.Update()   

  10. write-host $field.Title " added successfully to the list" 

  11. else 

  12. {   

  13. write-host $field.Title  " column already exists in the list" 

  14. }

  15. }

  16. else

  17. {   

  18. write-host $list.Title  " does not exists in the site"

  19. }

  • Go to the =>Permissions and Management => Enterprise Metadata and Keywords Settings.

  • You could see the "Enterprise Keywords" enabled.



bottom of page