Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

5 thoughts on “Publish Content Type in SharePoint using PowerShell

  • March 9, 2021 at 5:29 PM

    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
  • June 1, 2020 at 11:19 PM

    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
  • November 1, 2017 at 5:34 PM

    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
    • November 2, 2017 at 7:43 AM

      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