• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 580
  • Last Modified:

Add column to content type using PS

I'm looking for a script that will look through all existing libraries in a web application, find the ones that have a content type of document set and add a column to them.
Column name: pType
Column type: Single line of text
Column default value: doc

The libraries I am interested in were not created using the custom document library template but one that we created and template. So the script would need to look for this library type (if possible?)

Also, the document set in the libraries will have had their name changed from the default "document set"
1 Solution
Jamie McAllister MVPSharePoint ConsultantCommented:
There's some PS listed here;


It would need a loop adding to look at all libraries, but aside from that seems to do the job.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now