SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is already a content type whhich is created on RootWeb of a alll Site collections. this Content type has been created programmatically (site scoped feature) so that it gets dynamic guid (id). Now I have to give this content type a static id (guid). the problem is there are too many lists and documents which already used (added) this content type. the question is what is the best solution (safe). do I delete the content type from all rootWebs, lists and recreate it (with a static id) and add it again to the lists? or is there a way to update the id of the content type? I need some code sample (I myself prefer powershell) thanks for any advice.

share|improve this question

I suggest following plan:

  1. Create the new ContentType with the right id.
  2. Add it to all the site collections that need it
  3. Add it to all the lists that need it
  4. Change the contenttype of all the listitems
  5. Remove the old content type from all the lists
  6. Delete the old content type from all the site collections
share|improve this answer
thank you sir, I will test this scenario. – Medes Mar 22 '12 at 8:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.