คำตอบ Create Multiple Document Content Types in Root of Site Collection

  • Thursday, April 26, 2012 4:22 AM
     
     

    I was wanting to know if it is possible to create multiple Document Set Content Types via Powershell at the top of web site of a Site Collection in the Content Type Library?

    Thank You,

    Trent Nesic

All Replies

  • Thursday, April 26, 2012 4:42 AM
     
     

    http://blogs.technet.com/b/vedant/archive/2010/04/21/using-the-document-set-feature-in-sharepoint-2010-part-1.aspx

    http://www.packtpub.com/article/microsoft-sharepoint-content-types

  • Thursday, April 26, 2012 1:53 PM
     
     

    Yes it is possible to create Document Set Content Types via Powershell.

    Normally you would add these Content Types to the root of your Site Collection.

    Regards,

    André

  • Thursday, April 26, 2012 2:27 PM
     
     

    Hey Andre,

    Can you post the Powershell script that may achieve creating Document Sets?

  • Friday, April 27, 2012 8:07 AM
    Moderator
     
     Answered

    Hi Trent,

    I’m a little not clear about your description, do you mean that you want to create multiple site content types based on Document Set Content Type?

    If so, here is a PowerShell code example about “Create a SharePoint 2010 Content Type”, for more information, please refer to:
    http://jaclynsaito.wordpress.com/2011/06/07/create-a-sharepoint-2010-content-type-using-powershell/

    Thanks,
    Qiao


    Qiao Wei

    TechNet Community Support

    • Marked As Answer by Trent Nesic Sunday, April 29, 2012 6:08 AM
    •  
  • Sunday, April 29, 2012 6:10 AM
     
     

    Thank you Qiao, that is what I was looking for; I was trying to use the wrong .NET Class which is what my mistake was in Powershell. Thank you, much appreciated.