New answers tagged

0 votes

How to publish an item to multiple targets at a time, by using powershell script

If you go to https://doc.sitecorepowershell.com/appendix/common/publish-item, it has an exact example that shall serve your purpose.All you need to do is put the targets in an array (rather than ...
Ghanendra's user avatar
  • 631
0 votes

How to publish an item to multiple targets at a time, by using powershell script

If publishing from content editor wors fine then it should also work from powershell . You can use next powershell code (you need to change item path) : $targets = [string[]]@('web','internet') ...
Vlad Iobagiu's user avatar
  • 18.2k
1 vote
Accepted

How to publish an item to multiple targets at a time, by using powershell script

For this to work, you need to provide target attribute in publish command. It accepts list so as you have multiple target then provide them accordingly. e.g. get-item '/sitecore/content/path' | ...
Rinku Jain's user avatar

Top 50 recent answers are included