Does anyone know or have a PowerShell script which can remove the checkbox in publication restrictions specific to publication targets for Sitecore items?

We need to achieve (2) as below since some items have checkboxes in certain publication targets in publication restrictions

As per Sitecore documentation:

To restrict all the item versions to be published only to certain publishing targets, on the Targets tab, select the relevant publishing targets. This applies to all versions of the item in all languages.

  1. If you select one or more publishing targets for the item, when you publish, the item is removed from the publishing targets that you do not select.
  2. If you do not specify any publishing target for the item, the item can be published to any publishing target you choose in the Publish wizard.

Thank you for help in advance!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.