Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

5 thoughts on “Publish Content Type in SharePoint using PowerShell

  • Is there a way to stop the republishing? We accidentally hit the “Refresh all published content type” at the site collection level and we want to stop it. We disabled the content subscriber job in the mean time but getting it out of the queue would be what we need.

    Reply
  • Hello Salaudeen,

    Thank you for this great script.

    I wanted to find out if there is a script to publish the content types for SP online using Powershell?

    Thanks,
    JS

    Reply
    • Unfortunately, No! We can’t publish content types in SharePoint Online using PowerShell as of today.

      Reply
  • Hello Salaudeen,

    This is really good. Thank you.

    I wanted to find out if there is a script to publish ALL the content types and not just by groups.

    Thanks,
    Ricky

    Reply
    • Just remove the “Where” part.
      Instead of:

      $HubSite.RootWeb.ContentTypes | where { $_.Group -match $ContentTypeGroup } | ForEach-Object {
      Publish-ContentType $HubSiteURL $_.Name
      }

      use:

      $HubSite.RootWeb.ContentTypes | ForEach-Object {
      Publish-ContentType $HubSiteURL $_.Name
      }

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *