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.
- 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.
- 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!